Wrote this up and tested it, worked on win7.
Sorry for it looking so ugly, but try it out.
@echo off
title =Ping Tester
:Menu
color 07
cls
echo 1 Perform a self Ping Test
echo 2 Enter a IP to Ping
echo 3 Exit
echo.
set /p ans=
cls
if "%ans%"=="1" ping 127.0.0.1
if "%ans%"=="1" pause
if "%ans%"=="1" goto Menu
if "%ans%"=="2" set /p ip=IP:
if "%ans%"=="2" ping %ip%
if "%ans%"=="2" pause
if "%ans%"=="2" goto Menu
if "%ans%"=="3" exit
color 0c
cls
echo ERROR
echo.
echo please imput a number 1-3
pause
goto menu