Good morning,
I'm trying to find a way to copy/move files in multiple subfolders that have the same name (the files) to a single directory.
For example:
c:\test\folder1\test1.txt
c:\test\folder1\test2.txt
c:\test\folder1\test3.txt
c:\test\folder2\test1.txt
c:\test\folder2\test2.txt
c:\test\folder2\test3.txt
c:\test\folder3\test1.txt
c:\test\folder3\test2.txt
c:\test\folder3\test3.txt
etc...
all copied/moved to a single directory like this: (or anything close to this will work - just need all the files in a single directory with duplicates copied/moved too (that's been the hurdle I can't figure out).
c:\test\combined\test1.txt
c:\test\combined\test1(1).txt
c:\test\combined\test1(2).txt
c:\test\combined\test2.txt
c:\test\combined\test2(1).txt
c:\test\combined\test2(2).txt
c:\test\combined\test3.txt
c:\test\combined\test3(1).txt
c:\test\combined\test3(2).txt
Any thoughts how I could do this?
Suggestions are greatly appreciated!
Daniel