Home > Archive > APL > November 2005 > Code for deleting a folder.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Code for deleting a folder.
|
|
| AA2e72E 2005-11-27, 3:55 am |
| The APL+Win quadRMDIR removes an empty folder.
Does anyone have code for removing a folder that is not empty i.e. it may
have files and folders which, in turn, may have files and folders etc?
| |
|
| Davin Church has a function in the his Files.w3 workspace available at
the APL2000 website that will do what you ask.
http://apldn.apl2000.com/downloads/...UF/default.aspx
AA2e72E wrote:
> The APL+Win quadRMDIR removes an empty folder.
>
> Does anyone have code for removing a folder that is not empty i.e. it may
> have files and folders which, in turn, may have files and folders etc?
| |
| Bob Cain 2005-11-28, 3:55 am |
|
AA2e72E wrote:
> The APL+Win quadRMDIR removes an empty folder.
>
> Does anyone have code for removing a folder that is not empty i.e. it may
> have files and folders which, in turn, may have files and folders etc?
There is a DOS command, deltree, that does what you want. I don't know
if that command is standard in the DOS box or if I picked it up
somewhere. If APL+Win allows execution of arbitrary DOS commands you
may be in luck.
Bob
--
"Things should be described as simply as possible, but no simpler."
A. Einstein
|
|
|
|
|