Shop OBEX P1 Docs P2 Docs Learn Events
League of legends ping checker . — Parallax Forums

League of legends ping checker .

GaaloulGaaloul Posts: 1
edited 2013-11-13 08:40 in Robotics
@ECHO OFF
@setlocal enableextensions enabledelayedexpansion
cls




ECHO North America...(NA)
echo 66.150.148.0/24
echo 64.7.194.0/24
echo 192.64.170.0/24
echo. 
ECHO Europe-West.....(EUW)
echo 95.172.65.0/24
echo 64.7.194.0/24
echo. 
ECHO Europe-Nordic...(EUN)
echo 95.172.65.0/24
echo 66.150.148.0/24
echo 64.7.194.0/24
echo. 


:end
SET /P serv=Please enter the server you want to test: 
IF "%serv%"=="NA" GOTO NA
IF "%serv%"=="EUW" GOTO EUW
IF "%serv%"=="EUN" GOTO EUN
IF "%serv%"=="" GOTO Error




::did not choose correct server
:Error
ECHO You did not enter a proper server!
goto end




::North america
:NA
ECHO You chose the North America Server ping test.


set /p "=Checking 66.150.148.1 .... " <nul
for /f "delims=" %%a in ('ping -n 15 66.150.148.1') do @set foobar=%%a
for %%a in (%foobar%) do SET avgms=%%a
echo %avgms%


set /p "=Checking 64.7.194.1 ...... " <nul
for /f "delims=" %%a in ('ping -n 15 64.7.194.1') do @set foobar=%%a
for %%a in (%foobar%) do SET avgms=%%a
echo %avgms%


set /p "=Checking 192.64.170.1 .... " <nul
for /f "delims=" %%a in ('ping -n 15 192.64.170.1') do @set foobar=%%a
for %%a in (%foobar%) do SET avgms=%%a
echo %avgms%
goto end




::Europe-West
:EUW
ECHO You chose the Europe West Server ping test.


set /p "=Checking 95.172.65.1 ..... " <nul
for /f "delims=" %%a in ('ping -n 15 95.172.65.1') do @set foobar=%%a
for %%a in (%foobar%) do SET avgms=%%a
echo %avgms%


set /p "=Checking 64.7.194.1 ...... " <nul
for /f "delims=" %%a in ('ping -n 15 64.7.194.1') do @set foobar=%%a
for %%a in (%foobar%) do SET avgms=%%a
echo %avgms%
goto end




::Europe-North
:EUN
ECHO You chose the Europe North Server ping test.


set /p "=Checking 95.172.65.1 ..... " <nul
for /f "delims=" %%a in ('ping -n 15 95.172.65.1') do @set foobar=%%a
for %%a in (%foobar%) do SET avgms=%%a
echo %avgms%


set /p "=Checking 66.150.148.1 .... " <nul
for /f "delims=" %%a in ('ping -n 15 66.150.148.1') do @set foobar=%%a
for %%a in (%foobar%) do SET avgms=%%a
echo %avgms%


set /p "=Checking 64.7.194.1 ...... " <nul
for /f "delims=" %%a in ('ping -n 15 64.7.194.1') do @set foobar=%%a
for %%a in (%foobar%) do SET avgms=%%a
echo %avgms%
goto end

Comments

  • davejamesdavejames Posts: 4,047
    edited 2013-11-13 08:40
    Hello Gaaloul - welcome to the Forum.

    What's the Parallax-related application/use of this code?
Sign In or Register to comment.