标签:winform style blog color io ar for sp div
代码:
1 string curAppPath = System.IO.Directory.GetParent(System.Environment.CurrentDirectory).Parent.FullName;
首先通过 System.Environment.CurrentDirectory 可以获取 debug(如果是在debug状态)的路径;如 F:\gis\arcgis_engine\Engine\Engine\bin\Debug
然后用 System.IO.Directory.GetParent(pathName).Parent.FullName获得父目录的父目录.如 F:\gis\arcgis_engine\Engine\Engine
标签:winform style blog color io ar for sp div
原文地址:http://www.cnblogs.com/listened/p/4044062.html