add a "delete"
in there.
Jim Davis
> -Original Message-
> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 03, 2002 4:48 PM
> To: CF-Talk
> Subject: Re: Recursive File Delete
>
>
> > I am looking for a simple block of code t
o: CF-Talk
Subject: Re: Recursive File Delete
David Adams wrote:
> I am looking for a simple block of code that will loop through a
> directory and delete it's files when called. I do NOT want to delete
> the directory, only its conten
> David Adams wrote:
>> I am looking for a simple block of code that will loop through a
>> directory and delete it's files when called. I do NOT want to delete
>> the directory, only its contents.
> Why loop?
>name="c:\winnt\system32\cmd.exe"
> parameters="/c del c:\trash\*.* /q"
David Adams wrote:
> I am looking for a simple block of code that will loop through a
> directory and delete it's files when called. I do NOT want to delete
> the directory, only its contents.
Why loop?
Jochem
~|
Archives: ht
> I am looking for a simple block of code that will loop through a
> directory and delete it's files when called. I do NOT want to delete
> the directory, only its contents.
> Pseudo code:
> Set CurrentDirectory
> For each file in directory
> Delete it
> Next.
> I am sure this is easy for some
That'll delete everything but sub-directories within the specified
directory
Joshua Miller
Head Programmer / IT Manager
Garrison Enterprises Inc.
www.garrisonenterprises.net
[EMAIL PROTECTED]
(704) 569-9044 ext. 254
Chris Lofback
Sr. Web Developer
TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL 33761
www.trxi.com
> -Original Message-
> From: David Adams [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 03, 2002 4:22 PM
> To: CF-Talk
> Subject: Recurs
< cfdirectory action="list" directory="mydirectory" name="dirlist">
< cfoutput query="dirlist">
< cffile action="delete" file="#name#">
< /cfoutput>
Ryan
-Original Message-
From: David Adams [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 3:22 PM
To: CF-Talk
Subject:
8 matches
Mail list logo