欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2022-06-15 15:38:35
核心代码: <% temparray = array("account_book","admin","ajaxfile","catalog","excel...

核心代码:

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