PC Review


Reply
Thread Tools Rate Thread

choice command

 
 
alex
Guest
Posts: n/a
 
      19th Jul 2004
does anyone know where i can get a choice command that
will run in dos mode? thanks
 
Reply With Quote
 
 
 
 
Bill Stewart
Guest
Posts: n/a
 
      19th Jul 2004
alex wrote:

> does anyone know where i can get a choice command that will run in dos
> mode? thanks


Hi,

What do you mean by "DOS mode"? Windows NT 4.0, 2000, XP, etc. do not have
a "DOS mode"; see:

http://home.comcast.net/~stewartb/cmdprompt.html#9

Win9x/Me does have DOS mode because it boots from a real-mode MS-DOS
kernel.

If you need a keystroke input utility that's an actual MS-DOS executable,
you can use my freeware getkey utility:

http://home.comcast.net/~stewartb/getkv.html

Getkey is a keystroke input tool that sets ERRORLEVEL, like choice. Getvar
is a line-input tool that sets an environment variable. The download
includes MS-DOS and Win32 console versions of both programs.

Regards,

Bill


 
Reply With Quote
 
Ray McCormick
Guest
Posts: n/a
 
      19th Jul 2004
"alex" <(E-Mail Removed)> wrote in message
news:05a101c46da0$580d2d30$(E-Mail Removed)...
> does anyone know where i can get a choice command that
> will run in dos mode? thanks
>


If the query is 'what do I use in W2k instead of the 'choice'
command in Win9x then the answer is to use the 'SET' command (see
set /?)

I use the following to branch from a single-digit input:

(SET Choice=)
(SET /P Choice=Type the number and press Enter or Return: )
:: Reduce input to a single digit and test if valid
IF "%Choice%" NEQ "" SET Choice=%Choice:~0,1%
if x%choice% == x GOTO :NotValid
ECHO:
if %choice% GEQ 0 if %choice% LEQ 9 goto:item%choice%


Ray


 
Reply With Quote
 
Matthias Tacke
Guest
Posts: n/a
 
      19th Jul 2004
"alex" wrote:

>does anyone know where i can get a choice command that
>will run in dos mode? thanks


With just 396 hits here and 656 in ambnt I think this is an faq.
http://www.google.com/groups?group=m...admin&q=choice
http://www.google.com/groups?group=a...ch.nt&q=choice

I think you can find your answer in one of these 1052 postings :-)

--
Greetings
Matthias________________________________________
For help on nt commands enter in a cmd window:
W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CHOICE command Gary D. Windows XP General 10 22nd Dec 2005 04:25 PM
Is MS-DOS 'Choice' command gone? =?Utf-8?B?UmFpc2xlZ2Vy?= Windows XP General 7 6th Apr 2005 03:10 AM
Is the MS-DOS 'Choice' command gone? =?Utf-8?B?UmFpc2xlZ2Vy?= Windows XP General 6 5th Apr 2005 02:28 PM
Console replication of old CHOICE DOS command - how to timeout? - choice.vb (0/1) Mark A. Nadig Microsoft VB .NET 13 17th Mar 2005 03:40 PM
Re: Choice Command Ritchie Microsoft Windows 2000 CMD Promt 1 19th Aug 2003 08:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:12 AM.