asp获取虚拟目录根路径的代码
(编辑:jimmy 日期: 2025/11/5 浏览:3 次 )
核心代码:
<%
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
%>
下一篇:ASP错误捕获的几种常规处理方式