UnMappath

Returns the virtual path of the absolute path specified in the required argument pathname.
Reverse of MapPath

Public
Tested
My Own Work
Private Function UnMappath(byVal pathname)
 dim tmp, strRoot
 strRoot = Server.Mappath("/")
 tmp = replace( lcase( pathname ), lcase( strRoot ), "" )
 tmp = replace( tmp, "\", "/" )
 UnMappath = tmp
End Function

pathname

Views 2856 Downloads 1031

Classic ASP File System
ANmarAmdeen
627
Revisions

v1.0