AppCode下的cs类 取得相关路径

1.
System.IO.Path  
string   fullPath   =   Path.GetFullPath("db1.mdb");  

2.
HttpContext.Current.Server.MapPath

3.
Environment.CurrentDirectory

HttpRuntime.AppDomainAppPath

AppDomain.CurrentDomain.BaseDirectory

Application.StartupPath.ToString();

AppDomain.CurrentDomain.BaseDirectory;

HttpRuntime.AppDomainAppPath

posted @ 2011-08-01 11:20  复海大圣  阅读(236)  评论(0编辑  收藏  举报