BATCH - Search for files only in subfolders and move them out of position

Viewed 33

I simply explain what I would like my BATCH "font.bat" script to do:

I have a "Root Root" folder where I have MANY subfolders of various types inside. (subfolders with other subfolders or with files directly inside).

I would like to be able to process a series of operations within these subfolders of mine (also explained in the diagram in the attached photo). I would like it to search for all the images present in the subfolders in the "font 1 subfolder" and put them in a [IMG] folder. Subfolder 1 / IMG

Then I'd like it to do a search by * .OTF file type and move them to subfolder 1 here it might happen that the * .OTF files are not present but there will be the * .TTF files so I would like you to move those (ttf). The problem is that both OTF and TTF files may exist in the various subfolders ... I'd rather take the OTFs.

Then delete all files that exist outside the moved files (jpg, png, oft, ttf)

after this operation in subfolder 1 go to subfolder 2, .... etc etc ...

*clearly the name of the subfolders 1, 2, 3 will have various names, they do not always have well-defined names.

-->> enter image description here

0 Answers
Related