Web获取当前文件执行路径

string strPath = HttpContext.Current.Request.PhysicalApplicationPath;

你可能感兴趣的:(Web,String)