随笔 - 785  文章 - 16 评论 - 39 阅读 - 166万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

08 2013 档案
在C#里面获得应用程序的当前路径
摘要:Environment.CurrentDirectory——获取应用程序的当前工作目录。System.IO.Directory.GetCurrentDirectory()AppDomain.CurrentDomain.BaseDirectory——这两个只能在WindowForm中使用;Application.StartupPathApplication.ExecutablePath--获取和设置当前目录(即该进程从中启动的目录)的完全限定路径。Environment.CurrentDirectory--获取启动了应用程序的可执行文件的路径,包括可执行文件的名称。Application.Exe 阅读全文
posted @ 2013-08-22 14:39 qqhfeng16 阅读(328) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示