正文 主页 > 站长学院 > 网络编程 >

asp获取虚拟目录根路径的代码

下载我资源网

核心代码:


<%
TempArray = Array("account_book","admin","ajaxFile","catalog","excel","excel_stu","frame","inc","lib","pub", "stock","student","sygl","temp","windows")
url= LCase(Server.MapPath("./"))
for i=0 to UBound(TempArray)
url=Replace(url,""&TempArray(i),"")
Next
response.write url
%>

 

-- 展开阅读全文 --