从 cmd 检索信息

retrieve the information from cmd

我想从 cmd 结果中检索延迟和数据包丢失,但我找不到方法所以任何人都可以帮助我,如果有另一种方法没关系我只想要这些信息而不使用其他软件喜欢 PRTG


Pinging @ip with 32 bytes of data:
Reply from @ip: bytes=32 time=1ms TTL=64
Reply from @ip: bytes=32 time=1ms TTL=64
Reply from @ip: bytes=32 time=1ms TTL=64
Reply from @ip: bytes=32 time<1ms TTL=64

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

使用这个:ping @ip >ping.txt