Can anyone tell me why the following script does not work? It's supposed to return an ErrerLevel of 1 if ping returns "Request timed out". But instead, it always returns "Errorlevel 0". ???
@Echo Off
:start
ping 192.168.0.1
If ErrorLevel==1 Echo Error 1
If ErrorLevel==0 Echo Error 0
goto start
Any Ideas? Dave Namou, MCSE CCEA
@Echo Off
:start
ping 192.168.0.1
If ErrorLevel==1 Echo Error 1
If ErrorLevel==0 Echo Error 0
goto start
Any Ideas? Dave Namou, MCSE CCEA