1.

Solve : 10 options?

Answer»

Hello,

I would like to know how to ask for the user input with more then 10 options.So far I have tried:

echo 1-
echo 2-
echo 3-
echo 4-
echo 5-
echo 6-
echo 7-
echo 8-
echo 9-
echo 0- Options
CHOICE /n /C:1234567890 Choose the Action you want to Perform :

echo 1-
echo 2-
echo 3-
echo 4-
echo 5-
echo 6-
echo 7-
echo 8-
echo 9-
CHOICE /n /C:123456789 Choose the Action you want to Perform :

But that doesn't work I get the second set of optiopns what EVER option I choose for the first choice.

Thank You

AlmnHow about something like:
Code: [Select]@echo off
echo A-
echo B-
echo C-
echo D-
echo E-
echo F-
echo G-
echo H-
echo I-
echo J-
echo K-
echo L-
echo M-
echo N-
echo O-
echo P-
echo Q-
echo R-
echo Z- Options
CHOICE /n /C:ABCDEFGHIJKLMNOPRQZ Choose the Action you want to Perform :OK thank you
But what if I gave more than 24 options then ??

Thank You

AlmnCHOICE has an /s switch which makes your choices case sensitive. This should up your options to 62 (upper and lower case alpha plus ten digits).

What are you doing that you need so many options for?

8-)

Curious: I thought you were running the French version of XP. CHOICE has not shipped with any of the Windows NT family.Sidewinder has a good soultion.

Also, if you have more than about 24 options, then they will probably start scrolling off your screen (unless you CREATE multiple columns, or expand on the default number of rows). If you have that many, I would try to group them and have sub choices under the groups.



Discussion

No Comment Found