Merge folders with similar prefix in filename

Open discussion about WinMerge.

Merge folders with similar prefix in filename

Postby chip » Fri Mar 03, 2017 8:18 pm

I've spent all week trying to figure this one out with no luck. Originally tried to this as a batch script, then someone suggested WinMerge.
My goal is to merge folders and their contents together if they have a similar 5 digit code within the folder name. (and automatically/daily if possible)
This is an example of what I'm working with:

----[] Submitted Forms
--------> [] 45678 Lastname - Form A
-------------> 45678 Lastname - Form A.PDF
--------> [] 45678 Lastname - Form B
-------------> 45678 Lastname - Form B.PDF
--------> [] 11111 Lastname - Form A
-------------> 11111 Lastname - Form A.PDF
--------> [] 11111 Lastname - Form B
-------------> 11111 Lastname - Form B.PDF

The ideal output would look like this:

----[] Submitted Forms
--------> [] 45678 Lastname
-------------> 45678 Lastname - Form A.PDF
-------------> 45678 Lastname - Form B.PDF
--------> [] 11111 Lastname
-------------> 11111 Lastname - Form A.PDF
-------------> 11111 Lastname - Form B.PDF

Any ideas?
chip
 
Posts: 1
Joined: Fri Mar 03, 2017 8:02 pm

Return to Open Discussion

Who is online

Users browsing this forum: Bing [Bot] and 5 guests