//当前应用程序集的执行目录
string dir = AppDomain.CurrentDomain.BaseDirectory;
//当前应用程序集的执行的上级目录
dir = Path.GetFullPath("..");


// 读取到当前虚拟目录的根目录(MVC)
string urlPath = Server.MapPath(path);

 


 
                    
            
                

相关文章:

  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-02-08
猜你喜欢
  • 2021-12-13
  • 2022-12-23
  • 2021-05-21
  • 2022-02-10
  • 2021-11-18
  • 2021-07-01
相关资源
相似解决方案