摘要: c#获取文件夹路径(转载) C#中获取程序当前路径的集中方法System.Diagnostics命名空间string str1 =Process.GetCurrentProcess().MainModule.FileName;//可获得当前执行的exe的文件名。System 命名空间string str2=Environment.CurrentDirectory;//获取和设置当前目录(即该进程从中启动的目录)的完全限定路径。System.IO命名空间string str3=Directory.GetCurrentDirectory();//获取应用程序的当前工作目录。string str4= 阅读全文
posted @ 2010-01-20 19:15 Lance Yang 阅读(6754) 评论(0) 推荐(0) 编辑