c# 获取根目录

web程序获取根目录:HttpContext.Current.Server.MapPath

Windows Application和Console获取根目录:System.Environment.CurrentDirectory

Windows Service 获取根目录:System.Threading.Thread.GetDomain().BaseDirectory

 

posted on 2013-04-07 08:57  。!  阅读(172)  评论(0编辑  收藏  举报