C#获取服务器物理路径(解决方案根目录)

  string RootDir = Server.MapPath(System.Web.HttpContext.Current.Request.ApplicationPath.ToString());//获取程序根目录

你可能感兴趣的:(String,C#,服务器)