Hi,
I would like to delete all "thumbs.db" (for instance) in my documents folder and sub folders. How do I do that.
Also, how do I delete all the files in a directory and also the directory name from the system. (I tried removeself but that didn't seem to work.)
Thanks
Cleaning (deleting) files
Started by cleanwin, Feb 07 2010 08:54 PM
2 replies to this topic
#1 OFFLINE
Posted 07 February 2010 - 08:54 PM
#2 OFFLINE
Posted 08 February 2010 - 01:37 AM
You'll first need to disable thumbnail creation in Folder Options so they don't return:

You could then try this via a batch file since having CCleaner attempt it will be rather slow. I don't know if this will work, however here's a batch script to attempt it (just paste the code in Notepad and save as: "Thumbs Remover.bat" with the quotes, this is fully automatic):
If you want to see any status messages you could use this instead, must close the window yourself when it's done:
You could then try this via a batch file since having CCleaner attempt it will be rather slow. I don't know if this will work, however here's a batch script to attempt it (just paste the code in Notepad and save as: "Thumbs Remover.bat" with the quotes, this is fully automatic):
attrib /s -r -h -s "C:\thumbs.db" del /s /q "C:\thumbs.db"
If you want to see any status messages you could use this instead, must close the window yourself when it's done:
attrib /s -r -h -s "C:\thumbs.db" del /s /q "C:\thumbs.db" pause
#3 OFFLINE
Posted 08 February 2010 - 12:41 PM
Thanks for the quick reply.
I have checked the "Do not cache thumbnails" and reran CCleaner, and the directory was not deleted. (the files were). I even rebooted the system.
I added the |REMOVESELF to the ccleaner.ini using notepad. I don't see the option in ccleaner Options/include menu.
The batch file worked great.
Thanks
I have checked the "Do not cache thumbnails" and reran CCleaner, and the directory was not deleted. (the files were). I even rebooted the system.
I added the |REMOVESELF to the ccleaner.ini using notepad. I don't see the option in ccleaner Options/include menu.
The batch file worked great.
Thanks











