天天看點

check

@echo on

cd .>c:\Users\wwx275527\Desktop\ping.txt

:test

set pack=ping -n 1 192.136.44.116

%pack% >>c:\users\wwx275527\Desktop\ping.txt

set note=c:\users\wwx275527\Desktop\ping.txt

echo %date% %time% >>%note%

find /I "Request timed out." %note%

set res=%errorlevel%

if %res% equ 0 (

call :end

) else (

call :run

)

:end

echo "CNA逾時跳出腳本,請檢查"

pause&exit

:run

call :test