获取路径的方法

//获取路径的方法
//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;

posted @ 2016-04-15 14:58  龙骑科技  阅读(189)  评论(0编辑  收藏  举报