首页 > 建站教程 > ASP教程 >  asp获取虚拟目录根路径的代码_应用技巧正文

asp获取虚拟目录根路径的代码_应用技巧

核心代码:

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