Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Choice.exe

0 views
Skip to first unread message

Ray at <%=sLocation%>

unread,
Sep 25, 2003, 12:57:40 PM9/25/03
to
As in this?
CHOICE [/C[:]choices] [/N] [/S] [/T[:]c,nn] [text]

/C[:]choices Specifies allowable keys. Default is YN
/N Do not display choices and ? at end of prompt string.
/S Treat choice keys as case sensitive.
/T[:]c,nn Default choice to c after nn seconds
text Prompt string to display

ERRORLEVEL is set to offset of key user presses in choices.

Ray at work

"John" <john.f...@hp.com> wrote in message
news:05e701c38385$a349d600$a101...@phx.gbl...
> There used to be a command for win95 called choice, just
> wondering if their is a win2k equivelant?
>
> Cheers,
>
> john


JohnF

unread,
Sep 25, 2003, 1:26:37 PM9/25/03
to
YES!

My win2kpro system says it is an unknown command?

Do yuo know where I can get this file?

Cheers,

John

>.
>

Phil Robyn

unread,
Sep 25, 2003, 1:35:57 PM9/25/03
to
John wrote:

> There used to be a command for win95 called choice, just
> wondering if their is a win2k equivelant?
>
> Cheers,
>
> john

Yes, but it's in the Resource Kit.

--
Phil Robyn
Univ. of California, Berkeley

u n z i p m y a d d r e s s t o s e n d e - m a i l

Matthias Tacke

unread,
Sep 25, 2003, 1:56:25 PM9/25/03
to
Phil Robyn schrieb:

>John wrote:
>
>> There used to be a command for win95 called choice, just
>> wondering if their is a win2k equivelant?
>>
>> Cheers,
>>
>> john
>
>Yes, but it's in the Resource Kit.
>

But you can get it here
http://www.dynawell.com/reskit/microsoft/win2000/choice.zip

hth
Matthias

Mark V

unread,
Sep 25, 2003, 2:46:56 PM9/25/03
to
Matthias Tacke wrote in news:bkva86$5ce$00$1...@news.t-online.com:

But be aware that CHOICE can fail if multiple instances are running
on W2K.

SET /?
for other User Input command option.


Ray at <%=sLocation%>

unread,
Sep 25, 2003, 3:47:16 PM9/25/03
to
Sorry JohnF. I didn't realize that. I tried it on my test 2000 server, and
I had forgotten that I installed it on there.

Ray at work

"Phil Robyn" <zipp...@uclink.berkeley.edu> wrote in message
news:%238MiCr4...@TK2MSFTNGP09.phx.gbl...

Bill Stewart

unread,
Sep 25, 2003, 5:54:53 PM9/25/03
to
John <john.f...@hp.com> wrote:

> There used to be a command for win95 called choice, just wondering if
> their is a win2k equivelant?

You can try my getkey.exe. I like it better than choice because it doesn't
beep if you press an invalid key. Also, to my knowledge, running multiple
instances in different windows works just fine.

Also included is getvar.exe, which lets you read line input into an
environment variable.

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

HTH,

Bill


Clay Calvert

unread,
Sep 25, 2003, 7:29:05 PM9/25/03
to
On Thu, 25 Sep 2003 09:54:08 -0700, "John" <john.f...@hp.com>
wrote:

>There used to be a command for win95 called choice, just
>wondering if their is a win2k equivelant?
>

>Cheers,
>
>john

set /p Answer=Get user input.

The above works in Win2K and newer.

Clay Calvert
CCal...@Wanguru.com
Replace "W" with "L"

0 new messages