如何ping一个IP并获得MS-DOS上的ms

时间:2014-09-11 21:34:11

标签: dos

我通常可以输入

ping 8.8.8.8 -n 1

我看到输出:

Pinging 8.8.8.8 with 32 bytes of data:
Reply from 8.8.8.8: bytes=32 time=84ms TTL=46

Ping statistics for 8.8.8.8:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 84ms, Maximum = 84ms, Average = 84ms

无论如何,我只能看到 84 作为输出?

1 个答案:

答案 0 :(得分:0)

这是一种方式:

@echo off
for /f "tokens=2 delims=mu= " %%a in ('ping 8.8.8.8 -n 1 ^|find "mum"') do echo %%a