Use "RD /s" instead of deleting files individually
Posted: 2007-10-03, 04:38 UTC
When you delete an entire directory, Total Commander deletes each file individually. This can cause problems if there are infected files in the directory as your real-time virus-shield will prevent the file from being deleted as TC opens the file to delete it. At least that's what happened to me today when I was cleaning up a directory that had some trojans in it.
I was able to open a CMD prompt (Windows XP Pro SP2), CD to the parent, and then use "RD /S infected-directory" to delete the entire tree with no problemsso this tells me the files were only locked when TC tried to delete them. If TC could use the "RD/q/s" logic instead of using whatever it does now, especially when you press [Shift-Del] to delete-bypassing-the-recycle-bin, this IMHO would be a Good Thing.
I was able to open a CMD prompt (Windows XP Pro SP2), CD to the parent, and then use "RD /S infected-directory" to delete the entire tree with no problemsso this tells me the files were only locked when TC tried to delete them. If TC could use the "RD/q/s" logic instead of using whatever it does now, especially when you press [Shift-Del] to delete-bypassing-the-recycle-bin, this IMHO would be a Good Thing.