I have a following batch file:
:LOOP
ping %1
ping %2
goto LOOP
The above file works only with two command line parameters. How to make this work of variable number of command line parameters. For example if four command line parameters were provided at the run time, then it should ping all the four servers.
Any help appreciated