摘要: //获取当前运行路径的上级目录(父目录)System.IO.DirectoryInfotopDir=System.IO.Directory.GetParent(System.Environment.CurrentDirectory);//继续获取上级的上级的上级的目录。stringpathto=topDir.Parent.Parent.FullName;//注意一个Parent获取上一级的目录。 阅读全文
posted @ 2013-06-20 10:00 蓝色L火焰 阅读(581) 评论(0) 推荐(0) 编辑