Batch to delete Thumbs.db
#1
Posted 06 February 2009 - 10:21 PM
This is all I have which is a CMD Command.
del /s /q Thumbs.db
Is there a way to convert that into a batch command?
#2
Posted 06 February 2009 - 10:52 PM
del /s /q C:\Thumbs.db
Billy3
#4
#5
Posted 09 February 2009 - 06:58 AM
#6
Posted 09 February 2009 - 01:47 PM
Boredom Software Stop Highlighting Things
#7
Posted 10 February 2009 - 07:19 AM
CD\
del /s /q C:\Thumbs.db
#8
Posted 13 February 2009 - 12:49 PM
#9
Posted 14 February 2009 - 06:29 PM
Maybe this
run then cmd
copy con: delthumbs.bat
@echo off
cls
del c:\inernet\thumbs\thumbs*.db*
Pause
exit
"then press CTRL Z to save batch"
this might work. If you could tell me what directory the thumb files are in I could test this.
This post has been edited by emucade: 14 February 2009 - 06:37 PM
Because when you are the best everybody wants to kick you’re a** "
My Dad 1986
#10
Posted 15 February 2009 - 11:44 AM
#11
Posted 15 March 2009 - 07:23 PM
Code:
del AusPhotoForums\*.*
rem AND EVEN TRIED
del AusPhotoForums\thumbs.db
del \ausphotoforums\controls\*.*
pause
rmdir \AusPhotoForums
rmdir \ausphotoforums\controls
pause
rem Message "Folder is not empty"
It seems that DOS is not able to delete the Thumbs.db file. In Windows I am always prompted for deletion of Thumbs.db if I try to delete all files. In DOS I am simply being refused.
Can anyone help me from this aspect of it?
Thanks
Nick
#13
Posted 16 March 2009 - 02:41 AM
There used to be deltree. A powerful but dangerous command.
However:
In a text file called KillThumbs.bat"
attrib /s -r -h -s "c:\thumbs.db"
del /s /q "c:\thumbs.db"
****USE AT YOUR OWN RISK. ****
copy a folder that has lots of subfolders with thumbs.db in them to another location and run it over that first
- ****CHANGING THE FOLDER CALLS ABOVE TO SUIT.****
Leave Echo on at least for the test, so you can see if it's doing what you want to this test folder and its subfolders.
It works in theory. It will take a while to run, because it will search every directory of your C drive twice.
****DO NOT GET ANYTHING WRONG! THIS IN THEORY COULD WIPE YOUR DRIVE.****
I have tied it on a test folder that I copied. It is my \nickdocs\photos folder, and I copied it to the c:\ root directory. IT worked on that folder and all its subfolders.
Good Luck
Nick

Help



Back to top













