手机
当前位置:查字典教程网 >编程开发 >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中通过该日历算法实现的具体代码

写入文本文件的过程函数(ASP)

asp中实现随机分组程序的代码

asp防止刷新功能实现代码

ASP和javaScript中的字母大小写转换函数代码

简单过滤一下广告的代码

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

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

精品推荐
分类导航