摘要:
string path = System.IO.Directory.GetCurrentDirectory();//获取应用程序的当前工作目录。 string str1 = Application.StartupPath;//获取启动了应用程序的可执行文件的路径,不包括可执行文件的名称 string str2 = Application.ExecutablePath;//获取启动了应用程序的可执行文件的路径,包括可执行文件的名称。 string str3 = Environment.CurrentDirectory;//获取和设置当前目录(即该进程从中启动的... 阅读全文