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
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
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
British Officials Deny New Copyright Regulations will Decriminalize Online Piracy Web Hosting News 2014-07-24 15:30:08
Beta Release of Red Hat Enterprise Linux 7 Launched Web Hosting News 2013-12-12 13:01:56
Egnyte Launches Program to PRISM-Proof Enterprise Cloud File-sharing Web Hosting News 2013-09-27 13:45:48
Joyent Releases Cloud Object Store Platform Manta Web Hosting News 2013-06-25 13:16:58
French Host eNovance Inks Deal with Inktank to Resell Ceph Professional Services Web Hosting News 2013-01-31 11:35:36


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:
WHT Membership
WHT Membership



 

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?