Click to See Complete Forum and Search --> : change path for gallery


IncaWarrior
01-01-2004, 06:45 PM
i'm using a simple ASP gallery on my site, but i want the path where the script looks, to be different than the directery it's in. I know almost nothing about ASP so i don't know if this is easy or not

<%
ShowSub = request("ShowSub")
ShowPic = request("ShowPic")
strPathInfo = Request.ServerVariables("PATH_INFO")
strPhysicalPath = Server.MapPath(strPathInfo)

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile(strPhysicalPath)
Set objFolder = objFile.ParentFolder
Set objFolderContents = objFolder.Files
For each Folder in objFolder.SubFolders
If Left(Folder.Name,1)<>"_" Then
Response.write "<option "
If ShowSub=Folder.Name Then
Response.Write "selected "
End if
Response.Write"value='" & CurFile & "?ShowSub="
Response.Write(Replace(Folder.Name, " ", "%20"))
response.write "'>"
Response.Write(Folder.Name & "</option>")
If ShowSub <= " " Then
ShowSub = Folder.Name
End if
End if
Next
Set objFSO = Nothing
%>

what would i change to make the directery "images/gallery/" instead of the current?

PeOfEo
01-01-2004, 07:21 PM
That all the code? I do not see anything that would restrict it in that to a root dir or a specific dir.

IncaWarrior
01-01-2004, 07:40 PM
there's more but that's the relevant part, i don't know how to change it so that file would be in the base dir, but the folders with the pictures would be in images/gallery/

IncaWarrior
01-02-2004, 08:10 PM
well anyone else?