批处理 中的 PING函数

首页 / 批处理入门教程 / 批处理 中的 PING函数

此批处理命令通过网络将ICMP/IP数据包发送到指定地址。

PING - 语法

PING [address]

其中,address是目标系统的IP地址或主机名。

PING - 示例

@echo off 
Ping 127.0.0.1

上面的命令将把ICMP/IP" echo"数据包发送到目标地址192.168.0.1。以下是输出示例。

链接:https://www.learnfk.comhttps://www.learnfk.com/batch-script/batch-script-ping.html

来源:LearnFk无涯教程网

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

祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)

技术教程推荐

算法面试通关40讲 -〔覃超〕

Go语言从入门到实战 -〔蔡超〕

编辑训练营 -〔总编室〕

性能测试实战30讲 -〔高楼〕

深度学习推荐系统实战 -〔王喆〕

打造爆款短视频 -〔周维〕

Redis源码剖析与实战 -〔蒋德钧〕

结构会议力 -〔李忠秋〕

徐昊 · AI 时代的软件工程 -〔徐昊〕

好记忆不如烂笔头。留下您的足迹吧 :)