Results 1 to 2 of 2
Thread: File System Object
-
11-05-2004, 03:29 PM #1Junior Guru Wannabe
- Join Date
- Aug 2002
- Location
- Los Angeles
- Posts
- 39
File System Object
This is in regards to ASP classic File System Object. I am trying to use the FileExists method to see if i a picture exists on the website. If it does it will display it. If not it will not display it. My issue is of course the fact that it does not use relative paths. It must be absolute. I am curious if there is any way i can make it so it will use a relative path, or a html path.. For example i would like to write....
fso.FileExists("productphotos\large\" & photofile)
Thanks in advance.
-
11-07-2004, 03:17 AM #2WHT Addict
- Join Date
- Oct 2004
- Posts
- 104
Server.MapPath should do the trick
fso.FileExists(Server.MapPath("productphotos\large\" & photofile))