Avery Dennison 6037 Rev. AA 3/04 Programmer Manual User Manual
Page 127

Utility Descriptions 5-7
C H O I C E
The CHOICE command allows a user to select between different options
during the processing of a batch file.
Syntax
CHOICE [/C[:]keys] [/N] [/S] [/T[:]c,nn] [Prompt Text]
Remarks
/C[:]
keys specifies the allowed keys for the user prompt. The colon is
optional for the command syntax. The default selection for the keys is
YN. More than two key choices may be entered.
/N prevents display of the user prompt. The selected keys are still valid,
but they are not displayed in the prompt message.
/S selects case-sensitivity regarding the prompt. With the /S switch, you
must enter the response in the exact case used with the /C option.
/T[:]
c,nn sets a time delay. CHOICE pauses for the specified number of
seconds waiting for a response. If none is given, the default key choice
is used. The argument
c is the default-key choice character. The nn
argument specifies the number of seconds to pause. Valid number
selections are from 0 to 99. A 0 setting produces no pause.
Prompt Text for the prompt is optional. You can display different output
by using the text field, or not, and by using or removing the /N switch
along with the text.
Examples
When the following CHOICE command is used
CHOICE /c:ync
you will see:
[Y,N,C]?