MS-DOS Internal Commands
The CHOICE Command
Description:
Waits for the user to choose one of a set of choices.
Command Syntax:
CHOICE [/C[:]choices] [/N] [/S] [/T[:]c,nn] [text]
Explanation of Syntax:
[/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.
Command Use:
This command can only be used in batch files.