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

时间:2015-06-12 10:08:18

标签: windows command ping

例如,在Windows 7输出命令

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 个答案:

答案 0 :(得分:1)

也许使用此命令:

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