/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
My win2kpro system says it is an unknown command?
Do yuo know where I can get this file?
Cheers,
John
>.
>
> 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
>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
But be aware that CHOICE can fail if multiple instances are running
on W2K.
SET /?
for other User Input command option.
Ray at work
"Phil Robyn" <zipp...@uclink.berkeley.edu> wrote in message
news:%238MiCr4...@TK2MSFTNGP09.phx.gbl...
> 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
>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"