c#获取绝对路径:System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "log.txt");

.net获取绝对路径:Server.MapPath("/log.txt")

 

来源:中国建筑市场网

相关文章: