Asp-Classic
在 ASP Classic 應用程序中獲取根目錄
我的 ASP Classic 應用程序中有幾個相對路徑。為了設置路徑,我想獲取對我的特定應用程序的根目錄的引用(因為伺服器的根目錄不同)。
有沒有辦法做到這一點?
你有沒有嘗試過
<%= Server.MapPath("/") %>
使用
Request.ServerVariables("APPL_MD_PATH")或Request.ServerVariables("APPL_PHYSICAL_PATH")。