UnMappath

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

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 498 Downloads 224

'MapPath', 'Reverse', 'UnMapPath', 'MotMyWork', 'NeedsTesting', 'NotTested'

ANmarAmdeen
326
File System Classic ASP
Revisions

v1.0