Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- title Ping
- setlocal enabledelayedexpansion
- color a
- set total=0
- set count=0
- :check
- if !count! GTR 5 (
- set /a "count=1"
- set /a "total=%prom%"
- )
- for /F "tokens=7 delims==: " %%G in ('ping -n 1 189.236.63.180 ^| findstr /C:"Respuesta"') do (
- set /a count+=1
- set milis=%%G
- set milis=!milis:ms=!
- set /a total=!total! + !milis!
- )
- set /a prom=%total% / %count%
- mode con:cols=16 lines=4
- cls
- if %prom% GTR 70 (color a)
- if %prom% GTR 110 (color e)
- if %prom% GTR 320 (color c)
- echo.
- echo.
- echo Server LOL LAN
- echo ping: %prom%ms
- title Ping: %prom%
- goto check
- pause
- endlocal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement