摘要: 转自:壊壊—娚孩反恐金鹰winform获取文件路径string str1 =Process.GetCurrentProcess().MainModule.FileName;//获得当前执行的exe的文件名。string str2=Environment.CurrentDirectory;//获取和设置当前目录的完全限定路径。string str3=Directory.GetCurrentDirectory();//获取应用程序的当前工作目录。string str4=AppDomain.CurrentDomain.BaseDirectory;//获取基目录,它由程序集冲突解决程序用来探测程序集。 阅读全文
posted @ 2012-09-01 10:34 听风. 阅读(39785) 评论(3) 推荐(2) 编辑