S
Steve
Hi all,
FileSystemObject question...
I'm trying to check if files exist or not, but the files
are not sitting on the same server as our Intranet.
Basically we have about 5000 photos in a directory on our
database server, and they must stay there. I want to use
the FileSystemObject (running on our Intranet server) to
check if a photo is there, if so display it, if not
display a 'no image' graphic.
Within IIS I've created a virtual directory
called 'staffpics' which looks at the hidden share for the
photos: \\servername\sharename$
This works fine displaying the photos in IE:
intranet.domain.co.uk/staffpics/117495.jpg
But when I try to check if the file exists using the
FileSystemObject:
CheckThisFile = Server.MapPath("/staffpics/117495.jpg")
Set filesys = CreateObject("Scripting.FileSystemObject")
Response.Write filesys.FileExists(CheckThisFile)
I get "False", but I know the file is there and accessible.
Any help with this would be great, even if it's not using
the FileSystemObject...!
Thanks,
Steve
FileSystemObject question...
I'm trying to check if files exist or not, but the files
are not sitting on the same server as our Intranet.
Basically we have about 5000 photos in a directory on our
database server, and they must stay there. I want to use
the FileSystemObject (running on our Intranet server) to
check if a photo is there, if so display it, if not
display a 'no image' graphic.
Within IIS I've created a virtual directory
called 'staffpics' which looks at the hidden share for the
photos: \\servername\sharename$
This works fine displaying the photos in IE:
intranet.domain.co.uk/staffpics/117495.jpg
But when I try to check if the file exists using the
FileSystemObject:
CheckThisFile = Server.MapPath("/staffpics/117495.jpg")
Set filesys = CreateObject("Scripting.FileSystemObject")
Response.Write filesys.FileExists(CheckThisFile)
I get "False", but I know the file is there and accessible.
Any help with this would be great, even if it's not using
the FileSystemObject...!
Thanks,
Steve