scripting problem
Posted: 14 Aug 2020 10:21
Alright SO I want to make a menu for a batch File but it won't work
here's the code.
here's the code.
Code: Select all
@echo off
set /a %bee%=1
:menu
if %bee%==1 echo WS to move up or down, Also X to say yes
choice /c WSX /n
echo #play
echo load
echo exit
pause
cls
if %errorlevel%== w goto :menu3
if %errorlevel%== s goto :menu2
if %errorlevel%== x goto :Newgame
:menu2
if %bee%==1 set /a bee = 0
choice /c WSX /n
echo play
echo #load
echo exit
pause
if %errorlevel%== w goto :menu
if %errorlevel%== s goto :menu3
if %errorlevel%== x goto :load
:menu3
if %bee%==1 set /a bee = 0
choice /c WSX /n
if %errorlevel%== w goto :menu2
if %errorlevel%== s goto :menu
if %errorlevel%== x goto :exit
echo play
echo load
echo #exit
pause