取得物理路径: string path = HttpContext.Current.Server.MapPath("print\\"); 取得访问的网址(协议+域名+端口号): string path = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) 相关文章: