应用技巧

关注公众号 jb51net

关闭
首页 > 网络编程 > ASP编程 > 应用技巧 > asp虚拟目录根路径

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

投稿:mdxy-dxy

这篇文章主要介绍了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
%>

阅读全文