From 0a244217b746f43af96b4c080d505f7470c259f4 Mon Sep 17 00:00:00 2001 From: Karthikeyan Vaithilingam Date: Mon, 19 Oct 2020 19:38:32 +0400 Subject: [PATCH] choice: add page (#4677) --- pages/windows/choice.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pages/windows/choice.md diff --git a/pages/windows/choice.md b/pages/windows/choice.md new file mode 100644 index 0000000000..5e46350d86 --- /dev/null +++ b/pages/windows/choice.md @@ -0,0 +1,29 @@ +# choice + +> Prompts the user to select one item from a list of single-character choices in a batch program, and then returns the index of the selected choice. +> If used without parameters, choice displays the default choices Y and N. +> More Information: . + +- A,B and C as list of choices to be used: + +`choice /c {{ABC}}` + +- Use the default [Y,N] list of choices: + +`choice` + +- Specify that the choices are case-sensitive: + +`choice /CS {{AaBb}}` + +- Specify the number of seconds to pause before using the default choice specified by `/d`: + +`choice /C {{AaBb}} /t {{3}} /d {{b}}` + +- Specify a message to display before the list of choices. If `/m` is not specified, only the choice prompt is displayed: + +`choice /m {{message}} /C {{ABC}}` + +- Display help message: + +`choice /?`