System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;
示例:X:\Codes\App\bin\Debug\App.vshost.exe
System.Environment.CurrentDirectory;
示例:X:\Codes\App\bin\DebugSystem.IO.Directory.GetCurrentDirectory();
示例:X:\Codes\App\bin\DebugSystem.AppDomain.CurrentDomain.BaseDirectory;
示例:X:\Codes\App\bin\Debug\System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
示例:X:\Codes\App\bin\Debug\System.Windows.Forms.Application.StartupPath;
示例:X:\Codes\App\bin\DebugSystem.Windows.Forms.Application.ExecutablePath;
示例:X:\Codes\App\bin\Debug\App.EXE