:janela echo off mode 30,5 :variaveis set pings=0 set sucesso=0 set falha=0 if "%1"=="" (set destino=186.241.187.89) else (set destino=%1) :exibir cls title %pings% - %sucesso%/%falha% echo Destino: %destino% echo Pings: %pings% echo Sucessos/Falhas: %sucesso%/%falha% :pingar ping -n 1 %destino%>nul set /a pings+=1 if "%errorlevel%"=="0" (set /a sucesso+=1) else (set /a falha+=1) goto exibir