A client needs an updated copy of a file propagated to about 160 variations of the same folder structure on a Windows box. can someone help me with a script to automate this? I’m a developer, but a n00b with scripts.
the folder structure looks like:
- root
- one
- layouts
- components
- help
- two
- layouts
- components
- help
- three
- layouts
- components
- help
- … x 160
- one
and I need to copy the same file to the ‘components’ folder.
thanks.
Here is a powershell solution I cooked up that should do what you are asking. You willneed to edit the SourceDir, Dest, and the Filter to get the file or files you want.