伊人久久一区二区三区四区,色偷偷,色噜噜污网站,啦啦啦www视频在线观看,成人亚洲一区二区三区在线

綠色資源網(wǎng):您身邊最放心的安全下載站! 最新軟件|熱門排行|軟件分類|軟件專題|廠商大全

綠色資源網(wǎng)

技術(shù)教程
您的位置:首頁(yè)網(wǎng)絡(luò)編程Asp編程 → asp中將相對(duì)路徑轉(zhuǎn)換為絕對(duì)路徑的函數(shù)

asp中將相對(duì)路徑轉(zhuǎn)換為絕對(duì)路徑的函數(shù)

我要評(píng)論 2011/05/28 21:01:20 來源:綠色資源網(wǎng) 編輯:downcc.com [ ] 評(píng)論:0 點(diǎn)擊:345次

'================================================
' 函數(shù)名:ChkMapPath
' 作 用:相對(duì)路徑轉(zhuǎn)換為絕對(duì)路徑
' 參 數(shù):strPath ----原路徑
' 返回值:絕對(duì)路徑
'================================================
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

關(guān)鍵詞:asp

閱讀本文后您有什么感想? 已有 人給出評(píng)價(jià)!

  • 1 歡迎喜歡
  • 1 白癡
  • 1 拜托
  • 1 哇
  • 1 加油
  • 1 鄙視
主站蜘蛛池模板: 泾阳县| 安达市| 太白县| 赤峰市| 新竹县| 宝鸡市| 襄城县| 旬阳县| 固原市| 海阳市| 扶绥县| 雷州市| 中阳县| 湛江市| 汾阳市| 徐州市| 鲁甸县| 崇礼县| 安乡县| 油尖旺区| 临邑县| 天峻县| 浦东新区| 饶平县| 新平| 辽源市| 杂多县| 满洲里市| 西华县| 札达县| 蛟河市| 麻城市| 普兰县| 永川市| 贵南县| 太原市| 龙江县| 江都市| 金门县| 紫金县| 松潘县|