摘要:
C#获取文件的当前路径1. System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName-获取模块的完整路径。2.System.Environment.CurrentDirectory-获取和设置当前目录(该进程从中启动的目录)的完全限定目录。3.System.IO.Directory.GetCurrentDirectory()-获取应用程序的当前工作目录。这个不一定是程序从中启动的目录啊,4.System.AppDomain.CurrentDomain.BaseDirectory-获取程序的基目录。5.System.Ap 阅读全文