I want to make a game where you are on a computer and you type 1
to get to files, but if you type something random like d
it closes the window. How can I fix this?
My code:
set /p Location=Where do you want to go:
goto %Location%
- I want to make a game similar to "Welcome To The Game".
- All the other code for now is
echo
's and what's at the top. - Location is what you are in like files or internet explorer.
- The code is inside one batch file only.
Okay don't worry about this it's a duplicate and I've gotten my answers.