So I have danced with this off and on throughout the day and the timeless phrase "There's more than one way to skin a cat" keeps coming to mind so I decided to take to the community.
Scenario:
Source folder "C:\Updates" has 100 files of various extensions that need to be copied to thesub-folders only of "C:\Prod" and overwrite any duplicate filesif they exist.
The Caveats:
- The destination folder names in "C:\Prod" are quite dynamic and change frequently.
- A naming convention is used to determine which sub-folders in the destination need to be excluded when the source files are being copied (retaining the original version of the files). For ease of explanation lets say any folder names starting with"!stop" should be excluded from the copy process. (!stop* if wildcards considered)
So, here I am wanting the input of those greater than I to tackle this in PS if I'm lucky. I've tinkered with Copy-Item and xcopy today so I'm excited to hear other's input.
Thanks!
-Chris