【发布时间】:2015-07-21 19:10:05
【问题描述】:
我需要在 windows 上将 ping 统计信息记录为表格格式。
C:\Users\hsangal>ping localhost -t -n 2
Pinging TechBeamers.local [127.0.0.1] with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Ping statistics for 127.0.0.1:
Packets: Sent = 2, Received = 2, Lost = 0 (0% loss)
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
我想使用 Windows 批处理脚本来执行此操作,并寻求专家的指导。我希望以表格格式记录的数据是下面突出显示的 ping 命令输出的一部分:
Packets: Sent = 2, Received = 2, Lost = 0 (0% loss)
【问题讨论】:
标签: windows batch-file scripting