C# 获取程序运行目录
2021-04-07 15:26
标签:for roc ica basedir domain directory startup str dom C# 获取程序运行目录 标签:for roc ica basedir domain directory startup str dom 原文地址:https://www.cnblogs.com/XuPengLB/p/9104957.html 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();