在Windows 7机器上,我ping关机机器的IP地址。
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)
即使没有答复,错误级别仍设置为0
。
我正在尝试做的是弄清楚远程计算机是否正在回复ping。我的测试之一是关闭机器并ping通它。由于某种原因,ping将errorlevel设置为0
。