General information
Category:
Coding, syntax & commands
Title:
Having problems with RMDIR and KILL
I'm having problems recursively deleting the contents of a directory using a combination of the RMDIR and KILL functions.
Since RMDIR won't recursively delete an entire directory structure I've had to create my own recursion functions (I'm certainly open to other solutions).
I start at the bottom, delete all files in the bottom directory, followed by any directories, then work my way up.
On my Windows NT v4.0 PC I have a copy of a directory structure with some directories and files in it that I copy to a seperate directory and then run my functions on. So I'm always working with the same files, same permissions, etc.
If I run it 10 times, about 3 times it will work perfectly, and about 7 times it will leave some files and directories.
This is really driving me nuts. Has anyone else had a similar experience? Or does anyone else know a better way to do the equivalent of an DELTREE /Y?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only