Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2002
    Los Angeles

    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.

  2. #2
    Join Date
    Oct 2004
    Server.MapPath should do the trick

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts