获取当前正在执行的服务器应用程序根目录的物理文件系统路径

WebForm
System.Web.HttpContext.Current.Request.PhysicalApplicationPath
WinForm
AppDomain.CurrentDomain.BaseDirectory

你可能感兴趣的:(获取当前正在执行的服务器应用程序根目录的物理文件系统路径)