DirectoryInfo info = new DirectoryInfo(Application.StartupPath);
String spath = info.Parent.Parent.Parent.FullName;
TrhaConst.sAppPath = Application.StartupPath;
【C#学习笔记】获取当前程序目录
最新推荐文章于 2024-01-12 10:24:52 发布
DirectoryInfo info = new DirectoryInfo(Application.StartupPath);
String spath = info.Parent.Parent.Parent.FullName;
TrhaConst.sAppPath = Application.StartupPath;