Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 如何在没有ping统计信息的情况下获得ping命令的输出?_Windows_Command_Ping - Fatal编程技术网

Windows 如何在没有ping统计信息的情况下获得ping命令的输出?

Windows 如何在没有ping统计信息的情况下获得ping命令的输出?,windows,command,ping,Windows,Command,Ping,例如,在Windows7中,命令的输出 ping -n 1 ::1 详情如下: Pinging ::1 with 32 bytes of data: Reply from ::1: time<1ms Ping statistics for ::1: Packets: Sent = 1, Received = 1, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0m

例如,在Windows7中,命令的输出

ping -n 1 ::1
详情如下:

Pinging ::1 with 32 bytes of data:
Reply from ::1: time<1ms

Ping statistics for ::1:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
ping::1,包含32字节的数据:
回复自::1:time可能使用以下命令:

ping -n 1 ::1 | find "string to search"

您使用输出的目的是什么?用于记录主机的可达性是!当然谢谢比预期的要好:ping-n1::1 |找到“回复”