This is a follow up to my post regarding 44,175 folders being created in a temp folder due to a bad definition file from Vipre/MAV.
The system in question had frozen up, and after we rebooted the server, I was not able to login using my normal remote control software (TeamViewer). But I was able to access the system from a remote command prompt.
That’s how I discovered the 44,175 folders. The question was: how do I delete all those sub folders?
A quick web search uncovered a usable solution, and after a test to verify it would work, I was ready to delete all those folders.
Here’s the command I used (obviously, enter the appropriate parent directory):
for /D %p in (c:\users\don\appdata\local\temp\*.*) do rmdir “%p” /s /q