Here is a sample of my batch file below.
When I do CTRL + Break, I get the message terminate batch job {Y/N)
If I select N, I want the batch file to return to the :MENU label.
Is there a way this can be done?
Thanks in advance.
@Echo off
:MENU
Echo Press 0 for DISCONNECT
Echo Press 1 for IPCONFIG
Echo Press 2 for STATS
set /p input=Enter 0-2:
if %input% == 0 goto DISCONNECT
if %input% == 1 goto :IPCONFIG
if %input% == 2 goto :STATS
echo.
DISCONNECT
cls
net use * /delete /y
pause
cls
GOTO :MENU
:IPCONFIG
cls
echo.
ipconfig /release
pause
ipconfig /renew
pause
cls
GOTO :MENU
:STATS
cls
net stats work
pause
cls
GOTO :MENU
When I do CTRL + Break, I get the message terminate batch job {Y/N)
If I select N, I want the batch file to return to the :MENU label.
Is there a way this can be done?
Thanks in advance.
@Echo off
:MENU
Echo Press 0 for DISCONNECT
Echo Press 1 for IPCONFIG
Echo Press 2 for STATS
set /p input=Enter 0-2:
if %input% == 0 goto DISCONNECT
if %input% == 1 goto :IPCONFIG
if %input% == 2 goto :STATS
echo.
DISCONNECT
cls
net use * /delete /y
pause
cls
GOTO :MENU
:IPCONFIG
cls
echo.
ipconfig /release
pause
ipconfig /renew
pause
cls
GOTO :MENU
:STATS
cls
net stats work
pause
cls
GOTO :MENU