Environment.CurrentDirectory
——获取应用程序的当前工作目录。
System.IO.Directory.GetCurrentDirectory()
AppDomain.CurrentDomain.BaseDirectory
——这两个只能在WindowForm中使用;

Application.StartupPath
Application.ExecutablePath
--获取和设置当前目录(即该进程从中启动的目录)的完全限定路径。
Environment.CurrentDirectory
--获取启动了应用程序的可执行文件的路径,包括可执行文件的名称。
Application.ExecutablePath
posted on 2013-08-22 14:39  qqhfeng16  阅读(324)  评论(0编辑  收藏  举报