set dd=%date:~8,2%
set mm=%date:~5,2%
set yy=%date:~0,4%
set a=0
for /f %%i in (1.txt) do (
ping -n 1 -w 100 %%i|find "100" > nul
if not errorlevel 1 (set/a a+=1
echo %%i>>%yy%-%mm%-%dd%连接异常.txt)
)
echo %a%
set dd=%date:~8,2%
set mm=%date:~5,2%
set yy=%date:~0,4%
set a=0
for /f %%i in (1.txt) do (
ping -n 1 -w 100 %%i|find "100" > nul
if not errorlevel 1 (set/a a+=1
echo %%i>>%yy%-%mm%-%dd%连接异常.txt)
)
echo %a%