複製程式
@echo off
color f2
echo.
set for=於
set of=的
set with=用
set in=(以
set data:=數據
set milli-seconds:=毫秒為單位)
set Approximate=大約
set times=時間:
set round=來回
set trip=行程
set Reply=應答
set from=來自
set bytes=字節
set time=時間:
set timed=時間
set out=超過
set statistics=統計
set Packets:=包:
set Sent=已發送=
set Received=已收到=
set Lost=已丟失=
set loss)=丟失)
set Minimum=最小值=
set Maximum=最大值=
set Average=平均值=
set TTL=TTL=
setlocal enabledelayedexpansion
set a=
set/p a=請輸入要ping的網址或IP
for /f "delims=" %%i in ('ping %a%') do (
set ret=
for %%a in (%%i) do if defined %%a (set ret=!ret!!%%a!) else set ret=!ret! %%a
if not "!ret!"=="" (set ret=!ret:time=時間! && echo !ret!) else echo.
)
pause>nul