#FILE.FileWasSaved# <-- it's CFFILE.FileWasSaved now, try that.

The other suggestion would be to use, 

<cfif fileexists(#FullPathIncludingFileName#)>
        it's there!
</cfif>

-----Original Message-----
From: John Barleycorn [mailto:[EMAIL PROTECTED]]
Sent: 14 August 2001 04:54
To: CF-Talk
Subject: checking to see if file was written


Hello again, i'm currently building a process that runs a query, creates a 
file with that queries contents and then runs another query that makes 
changes to the database based on the success of the first query and the file

that gets written. If the file is successfully written, i can update the 
database with the second query. I'm trying to check to see if the file was 
succesfully written and saved by using #FILE.FileWasSaved#, but i'm getting 
an error that says i need to execute a cffile tag, which i did, one line 
before the error is thrown. Can anyone tell me what i'm doing wrong or, if 
they know of a better way to do what i'm doing? Thanks a lot.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to