I have been working on a simple little project, but the batch code refuses to work. Can anyone help fix this? It either tells me that the ip must be specified or the ping result just doesn't show up.
@echo off
echo :1 Minecraft server resolver
echo :2 Website resolver
echo :3 Ping test
echo :4 Crash this computer
echo Please enter your selection
set /p whatapp=
cls
if %whatapp%==1 (
echo Please enter the IP of the Minecraft server you wish to resolve
set /p x=IP=
set n=1
PING %x% -n 1
call :Pingtest
pause > nul
:Pingtest
IF %errorlevel% EQU 1 (echo Server is Offline) else (GOTO:EOF)
pause
) else if %whatapp%==2 (
codetoinstallapp2
) else (
echo invalid choice
)