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.

Advertisements
Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: