c# asp.net web程序获取当前文件路径

网上搜到的很多方法拿到的只是iis程序的路径,下面两个获取当前文件的路径


System.Web.HttpContext.Current.Server.MapPath(@"../test.txt")



AppDomain.CurrentDomain.BaseDirectory

你可能感兴趣的:(小结)