EDIT: @KiwiBastard's answer is the correct method: System.AppDomain. CurrentDomain.BaseDirectory ...
stackoverflow.com