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

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;

相关文章:

  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
猜你喜欢
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-07
  • 2021-11-27
相关资源
相似解决方案