最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp相对路径转换成绝对路径
时间:2022-07-02 23:14:31 编辑:袖梨 来源:一聚教程网
asp相对路径转换成绝对路径
Public Function ChkMapPath(ByVal strPath)
On Error Resume Next
Dim fullPath
strPath = Replace(Replace(Trim(strPath), "//", "/"), "\", "")
If strPath = "" Then strPath = "."
If InStr(strPath,":") = 0 Then
fullPath = Server.MapPath(strPath)
Else
strPath = Replace(strPath,"/","")
fullPath = Trim(strPath)
If Right(fullPath, 1) = "" Then
fullPath = Left(fullPath, Len(fullPath) - 1)
End If
End If
ChkMapPath = fullPath
End Function
相关文章
- 伊瑟怪盗喵有什么使用技巧 10-16
- 三国志异闻录华雄角色怎么样 10-16
- 境界刀鸣石田雨龙刻印如何搭配 10-16
- 三国志异闻录袁绍怎么玩 10-16
- 全明星觉醒卢卡尔强度如何 10-16
- 忘川风华录祖冲之怎么玩 10-16