-
System.AppDomain.CurrentDomain.BaseDirectory;
-
System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
-
System.Environment.CurrentDirectory
-
System.Web.Hosting.HostingEnvironment.MapPath("~")
-
System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName
-
System.Windows.Forms.Application.StartupPath;
-
System.IO.Directory.GetCurrentDirectory();
-
System.Windows.Forms.Application.ExecutablePath;
C# 获取程序当前路径
最新推荐文章于 2021-03-25 14:31:37 发布