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

淘特ASP木马扫描器的代码

一个非常简单的将半角转换为中文的函数

asp中向文本框输出数据原样式的函数

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

ASP实例学习:随机生成文件名的函数

asp中COM组件中如何连接数据库的代码

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

asp防止刷新功能实现代码

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

精品推荐
分类导航