English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how can i make this patch work, it does not take the choices? can u tell me where is my mistake pls?

@echo off
rem mando1

cls
color f0
echo.
echo.

echo.
echo ****************************
echo * *
echo * 1- think *
echo * *
echo * 2- Maze *
echo * *
echo * 3- HBP *
echo * *
echo * 4- exit *
echo * *
echo ****************************
set I=1, 2, 3, 4
if I=="1" go to think
if I=="2" go to maze
if I=="3: go to hbp
IF I=="4" go to end

:think
cd a:\Root\DOSdata\think.exe
:maze
cd a:\Root\DOSdata\maze.exe
:hbp
cd a:\Root\DOSdata\hbp.exe
:end
exit

2006-12-05 13:19:43 · 1 answers · asked by happylife1440 1 in Computers & Internet Programming & Design

1 answers

You need the /p option on the set command:

set /p I=1, 2, 3, 4:

That should do it!

2006-12-08 18:38:49 · answer #1 · answered by BigRez 6 · 0 0

fedest.com, questions and answers