Forum rules Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 13 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
I am trying to find a way to minimize this script. Below is 3 different lines that are I need to set up for 50 different locations. The path will be exactly the same for all 50 locations except for the server name is different for all of them. Is there an easy way to make this happen without having 150 different "start Robocopy" lines? Thanks!
robocopy is not scripting it is just using the command line. When you put a string of commands in a file with extensions of BAT or CMD you are creating a command batch.
At a prompt type for /? which will list the help for the batch command FOR. There are examples in the help.
You might also want to note that robocpy has many command line switches that let you copy mutliple sources and destinations in one line. These can also help when we need to specify multiple systems.
You might also want to look into the GUIs that help generate RoboCopy batch files.
This topic is 13 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.