http://www.easydos.com/rmdir.html
You can also use <cfdirectory> to do this.
-Mark
-----Original Message-----
From: brob [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 3:07 PM
To: CF-Talk
Subject: Re: Deleteing a directory
Can someone possibly help me out and help me write a CFEXECUTE to delete a whole directory, as well as make a copy of
it? pleaaaaase. I dont know MS DOS or whatever it is u need to know hehehehe
----- Original Message -----
From: Scott Weikert
To: CF-Talk
Sent: Monday, November 10, 2003 2:58 PM
Subject: Re: Deleteing a directory
At 01:50 PM 11/10/2003, you wrote:
>I am using CFDIRECTORY to delete a directory. then I get an error saying
>that it can't be delted because the directory is NOT EMPTY. soooo????????????
Generally what you need to do is do a CFDIRECTORY on that dir, loop over
the contents and use CFFILE to delete each file as you loop over it, then
you can remove the directory.
Or perhaps do a command line bit, deleting *.* from that directory, that
would be less code and possibly quicker.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

