I have many image folders, and I want to create a batch file that can view all these directories and their subdirectories, and copy each image to one new folder (all files in the same folder). It works for me using below:
md "My new folder"
for /D %i in (*) do copy "%i\*" ".\My New Folder"
however, I also want to store files with duplicates (for example, if folder 1 and folder2 have images named 001.jpg, I want both of them to be copied to a new folder). For me, it doesn't matter what the new file names are! Availability:
001.jpg
001(1).jpg
001(2).jpg
it would be great, but even just rename each file with an incremental account and as a result:
1.jpg
2.jpg
3.jpg
etc
will be fine too. I only need this using the standard .bat / .cmd file, although there is no external software.
Thank you for your help!