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
%>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/2273.html