📎 AI Summary:
The original poster is attempting to create a text-based menu in a batch script but encounters issues with input not being recognized or conditions not working correctly. They share their code and seek help understanding what’s wrong. After editing their script, they report that it is now functioning properly, indicating they identified and fixed the problem. The overall sentiment is one of troubleshooting and successful debugging.

Tievan

New Member
Joined
Apr 14, 2015
Messages
2
Thread Author #1
I'm trying to create a text-based game, but I can't get passed the menu because either "set /p" isn't taking an input, or "if '%...'" isn't seeing it. This is what I'm doing to test menus, currently

:mmenu
echo Main Menu
echo Start
echo Quit
SET /P "a=Select "
if "a"=="Start"
[removed:then ]goto :start
if "a"=="Quit"
[removed:then ]goto :quit
[removed:uhoh]
echo Something Went Wrong!
pause
exit
:quit
cls
echo It Works! Exit!
pause
exit
:start
cls
echo It Works! Start!
pause
exit

What am I doing wrong?
 

Last edited:

Tievan

New Member
Joined
Apr 14, 2015
Messages
2
Thread Author #2
I made an edit, and now it's telling me what's going wrong! Seems to be working, now!