Try this:
FileExists()
Returns YES if the file specified in the argument does exist; otherwise, it
returns NO.
Syntax
FileExists(absolute_path)
Regards,
Howie
----- Original Message -----
From: "Mike Amburn" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 4:01 PM
Subject: check for file
> i'm trying to include a file, but i'm not sure that it's there. if it's
> not, i need to run a module that generates it.
>
> the only solution i have found is to wrap a <CFFILE action=READ...> in a
> catch/try container to see if any error occurs. is there any easier way?
>
> -mike
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists