Sort of like hitting Format when you are in the main drive

Gustavus

Golden Member
Oct 9, 1999
1,840
0
0
I was playing with a new bit of software called Icon Searcher. It found over 40,000 icons and asked if I wished to save them, so thinking it would stash them in a folder in the program directory, I foolishly clicked on OK. It stored them on the C drive in the form xxx-xxx.ico: over 40,000 items individually. Now the machine is virtually unusable. Do any of you know a way to do a wildcard delete on the C drive -- something on the order of *.ico?

Thanks for the help.
 

RebateMonger

Elite Member
Dec 24, 2005
11,586
0
0
At the command Prompt:

c:\erase /S /F *.ico

That will erase ALL files named *.ico in the entire C: drive and all subdirectories below it. It will include Read-Only files.

But are you sure you want to delete EVERY .ico file on the c: drive? You may want to be a bit more selective.

Edit: I just noted that the first part of my post, indicating starting at the root directory of the c: drive, didn't include the "\" portion. This is a problem caused by the message posting process.
 

Gustavus

Golden Member
Oct 9, 1999
1,840
0
0
RebateMonger,
Thanks for the reply. You are right of course -- I did not wish to delete every ico file on the C drive, just the 43,000 plus that Icon Searcher put there. Since I hadn't rebooted since they were put there, they were all appended to the list of files and folders I had before this happened. I decided to try the nearly manual way of removing them -- click on one, hold down shift and move to the end of the list and click to select them all, and then do a delete. This would not work because of the sheer number, but I found I could do it for about 10,000 at a time. Took about ten minutes before the click on the last file (of the block) could be entered, and then several minutes after the right click before the menu appeared for the delete. The delete for each block then took over fifteen minutes each, but eventually after over two hours of effort, they are all removed. That is more effort than any piece of software deserves.

I appreciate the assistance -- from a fellow Elite Member. I think we are not too many in number.
 

RadiclDreamer

Diamond Member
Aug 8, 2004
8,622
40
91
Bring up search, search for *.ico and for the date put in the date range when you did it. When it finds them, kill them.