Powershell / VB Script to copy files from A to B with conditions
Posted on 2012-03-13
Does anyone have a script that will take:
1. source (root) folder [e.g. C:\temp\template-update]
2. destination (root) folder [e.g. C:\temp\project1]
3. file mask [e.g. "*common*.cs]
And for each file in source, recursively, that match the file mask,
Will copy it into the destination folder, preserving the path information?
So if a file, std.common.net.cs was found in C:\temp\template-update\std\net, it will be copied into C:\temp\project1\std\net\std.common.net.cs with extreme prejudice (overwrite)?