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

编程学习 2021-07-05 10:58www.dzhlxh.cn编程入门
这篇文章主要介绍了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
%>

Copyright © 2016-2025 www.dzhlxh.cn 金源码 版权所有 Power by

网站模板下载|网络推广|微博营销|seo优化|视频营销|网络营销|微信营销|网站建设|织梦模板|小程序模板