How can I copy all .msg files that are spread throughout some GUID sub-folders in one folder to another folder that has a slightly different folder name at the end. Is it possible?
So for example:
- Source
- c:\Folder A\16-1167 Contoso 1 Hacker Way\Correspondence
- c:\Folder A\16-1168 Company name, address\Correspondence
- Destination:
- C:\Folder B\16-1167\0ba45cbd-6da8-4a4c-ae1c-9aca13aab1db\1\filename.msg
- C:\Folder B\16-1167\971d6bd3-d4f0-478d-b12d-ba0f9f1ea088\1\random filename.msg
- c:\Folder B\16-1168\971d6bd3-d4f0-478d-b12d\1\email.msg etc
I want to use a program or a script to copy all the *.msg into one folder in the source. It's complicated by the fact that the source has a job name after the job number. So the first 7 characters of the folder name are identical but the ending isn't.