Bulk Remove Files From Multiple Folders

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
sparks79
Posts: 28
Joined: 27 Jan 2008 01:29

Bulk Remove Files From Multiple Folders

Post 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.

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Bulk Remove Files From Multiple Folders

Post 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.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Bulk Remove Files From Multiple Folders

Post 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.

sparks79
Posts: 28
Joined: 27 Jan 2008 01:29

Re: Bulk Remove Files From Multiple Folders

Post 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

Post Reply