Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Having problems with RMDIR and KILL
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Having problems with RMDIR and KILL
Miscellaneous
Thread ID:
00450032
Message ID:
00450032
Views:
71
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
Map
View

Click here to load this message in the networking platform