|Hello, I am trying to do something that would seem simple enough here but I can't seem to figure it out.|
I am trying to make a batch file that will check to see if a server is available. If it is then I need it to continue on, if not then check to see if another one is available and if that one is then do another task... something like this. (I know this isn't right its just the concept...)
ping -n 2 SERV1
if it is available goto:TASK1 otherwise goto:SERV2CHECK
ping -n 2 SERV2
if it is available goto:TASK2 otherwise stop the batch file
echo Doing stuff...
echo Doung other stuff...