Appearance
.NET 获取应用程序执行路径
获取应用程序执行路径:
csharp
System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, System.Diagnostics.Process.GetCurrentProcess().MainModule.ModuleName);输出示例:
Text
C:\Directory\ProjectName.vshost.exe