ping error evel return - TechRepublic
General discussion
December 27, 2000 at 08:30 PM
chris r

ping error evel return

by chris r . Updated 25 years, 5 months ago

Hello Help required

Is there a ping.com version that returns a different errorlevel when it replys to when it times out eg.
ping Known_good_machine
echo %errorlevel%
=0
ping Known_bad_machine
echo %errorlevel%
=1

In my version they both return a 0

Im trying to create a .bat file that pings our four servers and creates a file according to their response
ie.
reply
md c:\server1OK.dir
time out
md c:\server1DEAD.dir

Can anyone help ?????????????

This discussion is locked

All Comments