Jump to content


Cleaning (deleting) files


2 replies to this topic

#1 OFFLINE   cleanwin

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 07 February 2010 - 08:54 PM

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

#2 OFFLINE   Andavari

    Captain Spectacular

  • Moderators
  • 13,330 posts
  • Gender:Male
  • Location:Shadow Moses

Posted 08 February 2010 - 01:37 AM

You'll first need to disable thumbnail creation in Folder Options so they don't return:
Posted Image

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

Complexity of incoherent design.

#3 OFFLINE   cleanwin

    Newbie

  • Members
  • Pip
  • 2 posts

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