2012年9月17日

摘要: string path = System.IO.Directory.GetCurrentDirectory();//获取应用程序的当前工作目录。 string str1 = Application.StartupPath;//获取启动了应用程序的可执行文件的路径,不包括可执行文件的名称 string str2 = Application.ExecutablePath;//获取启动了应用程序的可执行文件的路径,包括可执行文件的名称。 string str3 = Environment.CurrentDirectory;//获取和设置当前目录(即该进程从中启动的... 阅读全文
posted @ 2012-09-17 14:18 the Jade Emperor 阅读(202) 评论(0) 推荐(0) 编辑

导航