作者:阿里西西  文章来源:http://www.alixixi.com/  更新时间:2006-4-18

<%
Dim SerPath, j, FullPath, FolderPath, FileName
AppName = Mid(Request.ServerVariables("SCRIPT_NAME"),(InStrRev(Request.ServerVariables("SCRIPT_NAME") ,"/",-1,1))+1,Len(Request.ServerVariables("SCRIPT_NAME")))

    FullPath = Server.MapPath(AppName)
varNewPath = ""
If varNewPath <> "" Then
    If Instr(varNewPath,"") = ":" Then
    If Mid(varNewPath, 2, 1) = ":" Then  varPathx = varNewPath
    Else
    varPathx = Replace(FullPath, FileName, "")
    If Inser(Mid(varPathx, Len(varPathx) - 1, 1)) = 0 Then
    varPathx = varPathx & "\"
    End If
    End If
Else
varPathx = Replace(FullPath, FileName, "")
'varPathx = "c:\"
End If
response.write varPathx
%>

  • 上一篇:
  • 下一篇:
网友评论
相关搜索
阿里西西Baidu.com搜索