How to realize the Chinese version of ping data by batch processing
This article mainly introduces how to use batch processing to achieve the Chinese version of ping data, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
The code is as follows:
@ echo off
Color f2
Echo.
Set for= in
Set of= 's
For set with=
Set in= (with
Set data:= data
Set milli-seconds:= milliseconds)
Set Approximate= is approximately
Set times= time:
Set round= back and forth
Set trip= travel
Set Reply= reply
Set from= from
Set bytes= byte
Set time= time:
Set timed= time
Set out= exceeds
Set statistics= statistics
Set Packets:= package:
Set Sent= sent =
Set Received= has received =
Set Lost= is missing =
Set loss) = missing)
Minimum value of set Minimum= =
Set Maximum= maximum =
Average set Average= =
Set TTL=TTL=
Setlocal enabledelayedexpansion
Set a =
Set/p a = Please enter the URL or IP to ping
For / f "delims="%% I in ('ping% a%') do (
Set ret=
For% an in (% I) do if defined% a (set retouching activities% a!) Else set retweets ret! a
If not "! ret!" = "" (set retorted retorted ret = time! & echo! time!) Else echo.
)
Pause > nul
Thank you for reading this article carefully. I hope the article "how to use batch processing to achieve the Chinese version of ping data" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!