19. oktober 2003 - 13:51
Der er
4 kommentarer og
1 løsning
strHomePath = Server.MapPath(homePath)
Hey.
Hvis laver en en HomePatch, så tager den fra hele drevet
f.eks. C:\hjemmeside\home\
Hvad gør jeg så hvis jeg kun vil have den til at tage Root..?? F.eks. \home\
strHomePath = Server.MapPath(homePath)
strFolderPath = Server.MapPath(homePath&folderPath)
19. oktober 2003 - 14:00
#1
Ikke helt med hvad du ønsker, men denne får du stien til root folderen:
strRootPath = Server.MapPath("/")
Server.MapPath funktionen laver en relativ sti om til en fysisk sti.
19. oktober 2003 - 16:29
#2
Dim strHomePath, homePath, strFolderPath, folderPath, strApplPath, applPath
homePath = "./../"
applPath = "./"
folderPath = trim(request.form("folder"))
folderPath = Replace (folderPath, "\", "/")
folderPath = Replace (folderPath, "../", "")
folderPath = Replace (folderPath, "./", "")
folderPath = Replace (folderPath, "//", "/")
strHomePath = Server.MapPath(homePath)
strFolderPath = Server.MapPath(homePath&folderPath)
strApplPath = Server.MapPath(applPath)
Jeg har den formel der. I den skal jeg have lavet en path ligesom
strFolderPath = Server.MapPath(homePath&folderPath)
Bare en mere med Root istedet.
Som f.eks.
strStiPath = Server.MapPath(RootPath&folderPath)
Bare så den også virker