Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

Microsoft DOS choice command

Quick links

About choice
Availability
Syntax
Examples
Additional information

About choice

Allows for batch files and scripts to wait for the user to choose a set of choices.

Microsoft Windows 2000 and Windows XP users who have batch files that utilize the choice command should modify the batch file to use the MS-DOS set command.

Availability

The choice command is an external command and is available in

MS-DOS 6.0+
Windows 95
Windows 98
Windows Vista
Windows 7

Index

Category:
MS-DOS

Companies:
Microsoft

Related Pages:
Operating Systems
Batch files

Resolved

Were you able to locate the answer to your questions?

Syntax

choice[/C[:]choices] [/N] [/S] [/T[:]c,nn] [text]

 

Options:
/C[:]choices Specifies allowable keys. Default is YN
/NDo not display choices and ? at end of prompt string.
/STreat choice keys as case sensitive.
/T[:]c,nnDefault choice to c after nn seconds
textPrompt string to display

Examples

See batch file page for additional examples and uses of the choice command.

 

Home - Computer help - Contact - Site Map - About Us
Link to Computer Hope - Bookmark Computer Hope