<cfdirectory action="LIST" directory="C:\" name="TextFiles" filter="*.txt">

<cfoutput query="TextFiles">
        <cffile action="DELETE" file="C:\#TextFiles.name#">
</cfoutput>

-----Original Message-----
From: Margaret Cook [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 04, 2001 8:34 AM
To: CF-Talk
Subject: CFFILE and *


Hi All,
I would like to run a scheduled task that will remove a certain type of file

from my root directory daily (i.e., *.txt) but it seems cffile will not 
allow me to use the * or I am coding it wrong. This throws an error: <cffile

action="DELETE" file="c:\*.txt"> Does anyone have any code or thoughts on 
how I can do this? TIA

Maggie
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to