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 3056 Downloads 1085

Classic ASP File System
ANmarAmdeen
642
Revisions

v1.0