I have some ASP code sitting on a web server that gets the current directory that the asp file sits in:
pathStr = request.servervariables("PATH_TRANSLATED"
scriptStr = Replace(request.servervariables("SCRIPT_NAME", "/", "\"
Dim nameArr
nameArr = Array()
nameArr = Split(scriptStr, "\"
scriptStr = nameArr(UBound(nameArr))
currentDir = Replace(pathStr, scriptStr, ""
Set Folder = FSO.GetFolder(currentDir)
I want to get the path of a subdirectory within this directory. eg. Say the subfolders name was Fred.
... could i use
Set Folder = FSO.GetFolder(currentDir+"\Fred"
if not, how would I reference this path ?
thanks in advance,
Credo
pathStr = request.servervariables("PATH_TRANSLATED"
scriptStr = Replace(request.servervariables("SCRIPT_NAME", "/", "\"
Dim nameArr
nameArr = Array()
nameArr = Split(scriptStr, "\"
scriptStr = nameArr(UBound(nameArr))
currentDir = Replace(pathStr, scriptStr, ""
Set Folder = FSO.GetFolder(currentDir)
I want to get the path of a subdirectory within this directory. eg. Say the subfolders name was Fred.
... could i use
Set Folder = FSO.GetFolder(currentDir+"\Fred"
if not, how would I reference this path ?
thanks in advance,
Credo