I have lots of folders representing months and years that containing photos. In some of those folders there are multiple different sets of images that may have been on different SD cards when they were taken, but then they got combined together later. So I ended up with photos with replicated file names similar to below. All of the files with no suffix are from one set. All the files with a "-Copy" suffix are from a diff set. All of the files with a "-Copy2" suffix are from another set.
How can I use WinBatch to scan a set of folders, then in each folder rename the "-Copy" files collectively, and to rename the "-Copy2" files collectively, etc., to another naming scheme to make file management simpler. For example, if I rename "Image-001-Copy" to "Picture-001" and "Image-002-Copy" to "Picture-002", then when I manage the pics listed alphabetically they will be grouped correctly by which set they are from, thus easier to organize as a group. Does that make sense?
Oh and they are not all named "Image". They have various diff main filename stems. Could be "IMG", or "DSC", etc.
Image-001.jpg
Image-001-Copy.jpg
Image-001-Copy2.jpg
Image-002.jpg
Image-002-Copy.jpg
Image-003.jpg
Image-004.jpg
Image-004-Copy.jpg
Image-004-Copy2.jpg
So how do I accomplish this? Looks like I need to assign variables to the diff suffixes, group them by those variables, then rename all the diff group members to a new group prefix. But I'm not sure how to accomplish that. Any advice?