Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Having problems with RMDIR and KILL
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Having problems with RMDIR and KILL
Divers
Thread ID:
00450032
Message ID:
00450032
Vues:
73
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?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform