pls help write a BATch file!

aboka

Beta member
Messages
2
hi! i would like to get help in writing a simple batch file where it will ask user for 3 selection and then display them to them. i have found a command - 'CHOSE' but its not support by my XP Pro

in theory it should be like this -

display choice here "Please Select 1,2 or 3"

if choice = 1 then
display 1
elseif choice = 2 then
display 2
elseif choice = 3 then
display 3
else : quit
end if

output : you have select choice number 'x'

thank you,
 
i have found this to work -

set /p choice=Please Select An Option 1, 2, 3 [Others To Exit] :

but it will need user to press ENTER, could i make it so it don't need to. Just press a key on the keyboard then it will set the option

cheers,
 
Back
Top Bottom