Ping from windows 7 get no reply but sets errorlevel to 0
Posted
by
Doron
on Super User
See other posts from Super User
or by Doron
Published on 2012-03-23T08:55:52Z
Indexed on
2012/03/23
11:33 UTC
Read the original article
Hit count: 277
windows-7
From a Windows 7 machine, I ping an IP address of a turned-off machine.
C:\>ping 192.168.1.222
Pinging 192.168.1.222 with 32 bytes of data:
Reply from 192.168.1.222: Destination host unreachable.
Reply from 192.168.1.222: Destination host unreachable.
Reply from 192.168.1.222: Destination host unreachable.
Ping statistics for 192.168.1.222:
Packets: Sent = 3, Received = 3, Lost = 0 (0% loss)
Even though there is no reply, the errorlevel is set to 0
.
What I am trying to do, is figure out if a remote machine is replying to ping. One of my tests is to turn off the machine and ping it. For some reason, ping sets errorlevel to 0
.
© Super User or respective owner