My problem is this
I have an extensive collection of pictures spanning several sub-folders (I'm talking of several hundred of folders, not a few), under a main folder, as example:
Birthdays
Mom
Older Sister
Younger Brother
And so on.
I found a couple of batch files which automates the creation of zip files (with the same name of the Sub-folder) of every folder under the main folder and then move those zip files to the same-name folder, to use in a picture viewer, however, all the pics are still inside every sub-folder, and manually deleting thousands of pics is a chore
What I'm looking for is a batch script that deletes all the pics inside the sub-folders, minus the zip file and a single 0000.jpg / png / bmp file, that will act as a cover for the folder
I found this code online:
for /f %F in ('dir /b /a-d ^| findstr /vile ".filetypeA .filetypeB"') do del "%F"
Which apparently do what I'm looking for, however it need to be done for every folder, and that defeats the purpose of the automation I'm looking for
Any help will be appreciated
EDIT:
Clarifying on this issue: I only need the *.zip file and the 0000.JPG / PNG / BMP file, and nothing else
The 0000.* File will be used by an Android app as the cover of the folder (an specific app, like a comic viewer), Windows don't needs this in any sort of way, so the batch only needs to skip those files and delete the rest
del *.filetypeA /s
.. I am mostly sure I don't understand.