I'm trying to find a way to group files together for easy copying. The requirement is that I have filenames like:
aa0048.pdf and fg345_aa0048_somethingsomething.xml. There are 25000 files in the folder and the match between pairs is that the part of the name is equal. In this example aa0048.
I tried grouping and filtering in Windows Explorer but it didn't give good results. Is there another tool that can do this for me or some PowerShell/cmd script to make these combinations and move the first 100 couples to another folder?
The reason is that I need to process the couples later on with a batch program but want to do it in chunks of 100 instead of all 25000 files at the same time as that will overload the system where I'm processing to.