Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
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?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement