zl程序教程

您现在的位置是:首页 >  后端

当前栏目

获取路径的方法

方法 获取 路径
2023-09-14 08:57:07 时间

//获取路径的方法
//string location1 = this.GetType().Assembly.Location;
//string location2 = System.AppDomain.CurrentDomain.BaseDirectory;
//string location3 = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
//string location4 = System.IO.Directory.GetCurrentDirectory();
//string location5 = System.Environment.CurrentDirectory;
//string location6 = System.Windows.Forms.Application.StartupPath;
//string location7 = System.Windows.Forms.Application.ExecutablePath;
//string location8 = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;