小编tnt*_*273的帖子

网络延迟监控脚本窗口

我正在尝试编写将运行ping命令的脚本,并且从输出中它将获得平均延迟和丢包值的百分比,我尝试使用下面的命令运行良好

`ping -n 8 4.4.4.4  > D:\latency.txt

C:\Users\tnt5273>ping 4.2.2.2

Pinging 4.2.2.2 with 32 bytes of data:
Reply from 4.2.2.2: bytes=32 time=253ms TTL=54
Reply from 4.2.2.2: bytes=32 time=242ms TTL=54
Reply from 4.2.2.2: bytes=32 time=252ms TTL=54
Reply from 4.2.2.2: bytes=32 time=248ms TTL=54
Reply from 4.2.2.2: bytes=32 time=253ms TTL=54
Reply from 4.2.2.2: bytes=32 time=242ms TTL=54
Reply from 4.2.2.2: bytes=32 time=252ms TTL=54
Reply from 4.2.2.2: bytes=32 time=248ms TTL=54

Ping statistics for 4.2.2.2:
    Packets: Sent = 8, Received = 8, Lost = 0 (**0% loss**), …
Run Code Online (Sandbox Code Playgroud)

windows vbscript powershell batch-file

1
推荐指数
1
解决办法
2846
查看次数

标签 统计

batch-file ×1

powershell ×1

vbscript ×1

windows ×1