windows batch to delete incomplete downloads (might be a tough one)
Posted on 2011-10-19
Ok, 500 for this script is probably not enough, and I wish I could issue more. This is going to be a complicated script request.
I need a batch script that does the following:
Searches all hard drives for a particuler folder name e.g., "qagame"
Searches those folders for duplicate filenames...
and deletes the one with the most numerical digits in it.
The purpose of this is to delete incomplete downloads in these folders which normally tag the file with a bunch of digits at the end. Example...
Banimod.pk3 <---this is the complete file and should not be deleted
Banimod.34t678c.pk3 <---this is the incomplete download and is trash to be deleted
If there is a better way to do this I am open to suggestions, as long as I can use windows batch script.