此批处理命令通过网络将ICMP/IP数据包发送到指定地址。
PING - 语法
PING [address]
其中,address是目标系统的IP地址或主机名。
PING - 示例
@echo off Ping 127.0.0.1
上面的命令将把ICMP/IP" echo"数据包发送到目标地址192.168.0.1。以下是输出示例。
Pinging 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 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=4, Received=4, Lost=0 (0% loss), Approximate round trip times in milli-seconds: Minimum=0ms, Maximum=0ms, Average=0ms
参考链接
https://www.learnfk.com/batch-script/batch-script-ping.html
标签:127.0,示例,批处理,PING,无涯,echo,0.1,数据包 From: https://blog.51cto.com/u_14033984/8238416