Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 10-01-2005, 10:15 PM   #1
Beta Member
 
Join Date: Oct 2005
Posts: 2
Default pls help write a BATch file!

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,
__________________

aboka is offline   Reply With Quote
Old 10-01-2005, 10:35 PM   #2
Beta Member
 
Join Date: Oct 2005
Posts: 2
Default Re: pls help write a BATch file!

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,
aboka is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 11:28 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0