Page 1 of 1

Bulk Remove Files From Multiple Folders

Posted: 12 Jul 2011 21:31
by sparks79
I have a Large and Growing Movie Folder with about 400 Movie Folders.
Each Folder has either an mkv or avi movie file in it.
I have used this HDD at od occasions in my Media Centre.
Anyway Quite a few of the Folders have Mysteriously Acquired an Aditional File ( thumbs.dbs ).
Now I would like to remove the thumbs.dbs File from those Folders.
It's very slow and painstaking doing it manually.
There must be some simple dos command I can run which would do a bulk *.* Remove of all of these,.
Like Remove ( folder Name ) *.dbs .
Has anyone got a clue on doing this.
Many thanks in advance.
John.

Re: Bulk Remove Files From Multiple Folders

Posted: 12 Jul 2011 21:49
by zer0
It may sound too obvious, but how about a search for those .dbs files in the parent folder with subfolders included? Then delete the files found.

Re: Bulk Remove Files From Multiple Folders

Posted: 12 Jul 2011 23:26
by Stefan
* make an backup of your files first
or copy a few folders to temp and try with them.


* in XY go to top most folder of your archive
* type into XY address bar: !del /S thumbs.dbs
*Press ENTER

Other commands are f.ex
!dir /B /S thumbs.dbs
to see which files will be deleted

and
!dir /B /S thumbs.dbs > C:\Temp\thumbs_dbs.txt
to create an list of such files.


HTH?


EDIT:
note: NO recycle bin will be used! Deleted is deleted. You have to use an tool like Recuva to restore your files.

Re: Bulk Remove Files From Multiple Folders

Posted: 12 Jul 2011 23:45
by sparks79
Zero, Many Thanks, Worked like charm.
Also Thanks to the others for their advice.
As far as I am concerned this subject is finnished now.
Thanks Guys