当前位置: 首页 > 文章教程  > 计算机与互联网 > 网络编程

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

5/9/2018 9:58:12 PM 人评论

核心代码:<%TempArray = Array("account_book","admin","ajaxFile","catalog","excel","excel_stu","frame","inc","lib","pub", "stock","stu…

核心代码:

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

相关教程

共有条评论 网友评论

验证码: 看不清楚?