C# 获取程序运行目录

                string a = "BaseDirectory:" + AppDomain.CurrentDomain.BaseDirectory + "\r\n" +
"MainModule:" + Process.GetCurrentProcess().MainModule.FileName + "\r\n" +
"ApplicationBase:" + AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "\r\n" +
"StartupPath:" + Application.StartupPath + "\r\n" +
"ExecutablePath:" + Application.ExecutablePath + "\r\n" +
"GetCurrentDirectory:" + Directory.GetCurrentDirectory();

  

上一篇:洛谷P1621-集合


下一篇:从阿里中台战略看企业IT架构转型之道