Sure.

Something like this:

<cfif FileExists(#variables.x_file_name#)>
        <cffile action="DELETE" file="#variables.x_file_name#">
</cfif>

Of course, you'll have to substitute your own file name for the variable.

Cheers
Terry

----- Original Message -----

> Hi all,
> 
> Is there a way to check for the existence of a file before doing a 
> cffile
> delete, please?
> 
> Thanks, Jen
> 
> 
> (have to get in plug for new web site ..  http://www.chicksNchaps.co.uk)
> 
> 



-- 
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to