DirectoryInfo info = new DirectoryInfo(Application.StartupPath);
String spath = info.Parent.Parent.Parent.FullName;
TrhaConst.sAppPath = Application.StartupPath;
【C#学习笔记】获取当前程序目录
最新推荐文章于 2024-10-08 14:05:27 发布
本文详细介绍了在C#中如何获取当前执行程序的目录,包括使用Environment.CurrentDirectory和Application.StartupPath等方法,结合实例代码解析其用法,帮助开发者更好地管理和操作程序路径。
220

被折叠的 条评论
为什么被折叠?



