ahhh use the fileexists()
if you have any trouble try somthing like

<cftry>
 <cffile action="read" file="#fullpathtofile#" variable="filecontent">
 <cfset goodfile=true>
  <cfcatch type="any">
   <cfset goodfile = false>
  </cfcatch>
</cftry>

<cfif goodfile>
File Existed
<cfelse>
No File
</cfif>



----- Original Message -----
From: "Fetter, Brad" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, May 30, 2003 10:16 AM
Subject: RE: IF File Exist


> Actually the CFdirectory tag is the way to do this.. I will look for a
code
> example..
>
> -----Original Message-----
> From: Paige Chandler [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 30, 2003 10:10 AM
> To: CF-Talk
> Subject: IF File Exist
>
>
> Hello All,
>
> How can I determine if a file exist?  Sort of like:
>
> <CFIFFILE([EMAIL PROTECTED])>
>     do
> <CFELSE
>   do
> </CFIFFILE>
>
> Thanks.
>
> Have a great day.
>
> Regards,
>
> Paige
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to