I have a batch script named env_setup.bat which takes in multiple arguments such as server02, server05, server06 etc..
A typical calling example of the batch script would be something like
env_setup.bat server04 server02 server05
In the batch script I loop through the arguments ( various servers) and setup variables(using property files or other hard-coded variables) for that servers and execute a command( either sql file or robocopy or some other commands)
This batch script usually takes 15 minutes to run for each server. Some times I would need to pass in arguments for 5 or 6 servers which takes long time.
is there a way I can ask pass in arguments to a wrapper script so that env_setup.bat is run simultaneously for several servers and it executes in 15 minutes rather than 15 x n(where n is number of servers).
there is no dependency between arguments, i.e all of them can be run simulataneously.
This batch script will be called by another script and arguments(servers) passed dynamically.
I hope that makes sense.