@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
What's the Parallax-related application/use of this code?