hosted by liquidweb


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

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
  #1  
Old 11-05-2004, 03:29 PM
sXeBoarder sXeBoarder is offline
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
  #2  
Old 11-07-2004, 03:17 AM
folsom folsom is offline
WHT Addict
 
Join Date: Oct 2004
Posts: 104
Server.MapPath should do the trick

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

Reply

Related posts from TheWhir.com
Title Type Date Posted
Joyent Releases Cloud Object Store Platform Manta Web Hosting News 2013-06-25 13:16:58
Web Host DreamHost Joins OpenStack Foundation as Gold Member Web Hosting News 2012-09-19 17:09:06
Storage Technology Firm Amplidata Names CEO, Secures $6 Million Funding Web Hosting News 2012-09-12 10:37:52
Dell Quietly Taps Nirvanix for New Cloud Storage Service Web Hosting News 2012-09-12 17:37:30
DreamHost Launches Ceph-Based Cloud Storage Service DreamObjects Web Hosting News 2012-09-05 12:08:13


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
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com 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?