hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : File System Object

Forum Jump

File System Object

Reply Post New Thread In Programming Discussion Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Junior 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.

Sponsored Links
WHT Addict
Join Date: Oct 2004
Posts: 104
Server.MapPath should do the trick

fso.FileExists(Server.MapPath("productphotos\large\" & photofile))


Related posts from
Title Type Date Posted

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?