CopyCode The Code is as follows: @ echo off
Color F2
Echo.
Set for = on
Set of =
Set with =
Set in = (
Set Data: = Data
Set milli-seconds: = in milliseconds)
Set approximate = approximately
Set times = Time:
Set round = back and forth
Set trip = trip
Set reply = Response
Set From = from
Set bytes = byte
Set Time = Time:
Set timed = Time
Set out = exceeds
Set statistics = statistics
Set packets: = package:
Set sent =
Set received ED = received =
Set lost = Lost =
Set loss) = Lost)
Set minimum = Minimum value =
Set maximum = maximum value =
Set average =
Set TTL =
Setlocal enabledelayedexpansion
Set a =
Set/p a = enter the URL or IP address to ping
For/F "delims =" % I in ('Ping % A % ') Do (
Set ret =
For % A in (% I) do if defined % A (set ret =! RET !! % !) Else set ret =! RET! %
If not "! RET! "=" "(Set ret =! RET: time = time! & Echo! RET !) Else echo.
)
Pause> NUL