摘要: 获取目录 获取当前目录可以使用AppDomain.CurrentDomain.BaseDirectory。 获取当前目录的上级目录Path.GetFullPath("..\\") 代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace PathTest { class Program { static void Main(string[] args) { //使用AppDomain获取当前应 阅读全文
posted @ 2011-01-20 17:36 b0b0 阅读(963) 评论(0) 推荐(1)