in reply to Re^2: Win32: Deleting Temporary directories of all users on a machine?
in thread Win32: Deleting Temporary directories of all users on a machine (recursive)?

The built-in rmdir function will only remove a directory if it is empty.

del /s descends directories deleting the files, but leaves empty subdirectories in place.

rd /s gets shot of everything (assuming permission).


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"
  • Comment on Re^3: Win32: Deleting Temporary directories of all users on a machine?