//获取路径的方法
//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;
时间: 2024-10-09 18:15:21