I have a windows 2008 file server in a VM with 500,000 files in a particular folder.
I need to get rid of them, but if I select more than say 5,000 then delete, the CPU goes to 100% and it stops responding for hours.
Any way I could automate the task of selecting 5,000 files at time, and pressing delete?
The timestamps are all pretty much the same, so I can't do it by timestamp.
The sames are too similar, so trying to delete A*.* , then B*.* wouldn't work.
The folder in question is the kasperky quarantine folder, so in order for me to remove the folder, I'd have to boot into safe mode on Sunday. I could probably be done the manual process by then, but at this point, I'm just curious if there's a better option for the 5,000 batch deletes.