C#获取当前应用程序所在路径及环境变量
摘要:
C#获取当前应用程序所在路径及环境变量一、获取当前文件的路径string str1=Process.GetCurrentProcess().MainModule.FileName;//可获得当前执行的exe的文件名。string str2=Environment.CurrentDirectory;/... 阅读全文
posted @ 2015-12-10 21:14 大西瓜3721 阅读(239) 评论(0) 推荐(0)