Return the folder of the current ASP file
Tuesday, April 17, 2001Return the folder of the current ASP file being accessed.
set fs = server.createObject("scripting.fileSystemObject")
Full_ASP_FILE_PATH = server.mapPath(request.serverVariables("PATH_INFO"))
PATH_ONLY = fs.getParentFolderName(Full_ASP_FILE_PATH)
response.write "This ASP page is being run in the folder: " & PATH_ONLYLabels: ASP







