I want to accomplish the following in a bat script
I want to create an array, in which the elements are separated by space, for instance:
array = host1 host2 host3
And run a for
loop on that array where each element is passed as a parameter to a command for instance: psexec //host1 cmd
likewise all the server names should be passed as an argument.
How can I achieve this?