Script Center - Robocopy and PowerShell
This script allow you to run the Robocopy command with powershell with various folders.
When you download this script you'll have to edit it and change the source and destination folders. The below sample configuration run script twice, the first time copy the files from "D:\MySourcePath1" to "F:\MyDestinationPath1", and the second time "D:\MySourcePath2" to "F:\MyDestinationPath2".
This is a simple script, but one that might resonate since robocopy is a tool used my many in the know. I use Robocopy a great deal and was thinking just the other week that I'd like to use it with PowerShell instead of via a batch file... funny how that works out. :)
No comments:
Post a Comment
NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...
ALL comments are moderated. I will review every comment before it will appear on the blog.
Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...
I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...
Please see my comment policy for more information if you are interested.
Thanks,
Greg
PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...