asp獲取當前物理路徑
來源:易賢網 閱讀:4102 次 日期:2014-08-26 09:52:32
溫馨提示:易賢網小編為您整理了“asp獲取當前物理路徑”,方便廣大網友查閱!

<%@language="vbscript"%>

<%Option Explicit%>

<%

'asp獲取當前物理路徑

Dim foraspcnbase,foraspcnurl,foraspcntemp,foraspcntemp_array,foraspicn,foraspfactcn

Function foraspcn()

foraspcnbase = request.ServerVariables("APPL_PHYSICAL_PATH")'獲取當前站點物理路徑

foraspcnurl = Request.ServerVariables("SCRIPT_NAME")'獲取當前頁面物理路徑

foraspcntemp = Left(foraspcnbase,Len(foraspcnbase)-1) &Replace(foraspcnurl,"/","\")

foraspcntemp_array = Split(foraspcntemp,"\")

For foraspicn = 0 To UBound(foraspcntemp_array)-1

foraspfactcn = foraspfactcn&foraspcntemp_array(foraspicn)&"\"

Next

foraspcn = foraspfactcn

End Function

response.write foraspcn()'輸出當前物理路徑

%>

更多信息請查看IT技術專欄

更多信息請查看網絡編程
易賢網手機網站地址:asp獲取當前物理路徑
關于我們 | 聯系我們 | 人才招聘 | 網站聲明 | 網站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點

版權所有:易賢網