摘要:
转自:WebForm和WinForm取当前根目录的通用的方法 转自:WebForm和WinForm取当前根目录的通用的方法 某些环境下用 System.Web.HttpContext.Current.Server.MapPath 取不到目录。 可以用下面两个方法: 一,System.AppDomai 阅读全文
摘要:
转自:WebForm和WinForm取当前根目录的通用的方法 转自:WebForm和WinForm取当前根目录的通用的方法 某些环境下用 System.Web.HttpContext.Current.Server.MapPath 取不到目录。 可以用下面两个方法: 一,System.AppDomai 阅读全文
摘要:
string path = ""; if (System.Environment.CurrentDirectory == AppDomain.CurrentDomain.BaseDirectory) { path = AppDomain.CurrentDomain.BaseDirectory; } 阅读全文
|