i need help with a task
I need to copy an exported file from sub-directories into a new folder location and have them renamed. The issue is that all the exported files have the same name and it goes up to 500
--Old Folder
---Export1
---Scan.TIF
---Export2
---Scan.TIF
---Export3
---Scan.TIF
I have tried the following link which worked fine but the data would be all over the place. For example, the copied and renamed file in the new folder location called eg SCAN13.TIF would actualy be the document from sub-directory Export24
https://sumtips.com/snippets/powershell/copy-files-rename-duplicates-subfolder/
I need help with a script that could copy the file from all the sub-directories to a new location, renamed and have the data matched
Is that doable via scripting or would there be a tool for that?
Thanks for your time