手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp中将相对路径转换为绝对路径的函数代码
asp中将相对路径转换为绝对路径的函数代码
摘要:复制代码代码如下:'================================================'函数名:ChkMapP...

复制代码 代码如下:

'================================================

' 函数名:ChkMapPath

' 作 用:相对路径转换为绝对路径

' 参 数:strPath ----原路径

' 返回值:绝对路径

'================================================

Function ChkMapPath(ByVal strPath)

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

【asp中将相对路径转换为绝对路径的函数代码】相关文章:

asp中的Rnd 函数

ASP处理查询超时的解决函数

在asp中通过getrows实现数据库记录分页的一段代码

保存远程图片函数修改正版

ASP中常用的函数和详细说明第1/2页

Jmail组件发送邮件之绝对能用的函数

ASP中获得Select Count语句返回值的方法

实现ASP程序执行时间统计类的代码

asp最常用的分页函数

asp实现批量录入数据的实现

精品推荐
分类导航