System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);
Application.ExecutablePath (windows form)
System.Reflection.Assembly.GetEntryAssembly();
Assembly.GetExecutingAssembly().CodeBase
Appliaction.StartupPath property