摘要:
转自:WebForm和WinForm取当前根目录的通用的方法 转自:WebForm和WinForm取当前根目录的通用的方法 某些环境下用 System.Web.HttpContext.Current.Server.MapPath 取不到目录。 可以用下面两个方法: 一,System.AppDomai 阅读全文
posted @ 2016-11-24 10:13
明净
阅读(261)
评论(0)
推荐(0)
|
摘要:
转自:WebForm和WinForm取当前根目录的通用的方法 转自:WebForm和WinForm取当前根目录的通用的方法 某些环境下用 System.Web.HttpContext.Current.Server.MapPath 取不到目录。 可以用下面两个方法: 一,System.AppDomai 阅读全文
posted @ 2016-11-24 10:13
明净
阅读(261)
评论(0)
推荐(0)
摘要:
string path = ""; if (System.Environment.CurrentDirectory == AppDomain.CurrentDomain.BaseDirectory) { path = AppDomain.CurrentDomain.BaseDirectory; } 阅读全文
posted @ 2016-11-24 10:08
明净
阅读(176)
评论(0)
推荐(0)
|