1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/windows/choice.md
Robson Cruz 905f5f4da0
choice, net, sc, w32tm: remove locale from link; sc: update page, add alias pages (#11238)
* choice, net, sc, w32tm: remove locale from link

* sc: update command syntax

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* sc-*: add alias pages

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-10-25 22:26:53 +05:30

28 lines
713 B
Markdown

# choice
> Prompt user to select a choice and return the selected choice index.
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/choice>.
- Prompt the current user to select a `Y` or `N` choice:
`choice`
- Prompt the current user to select a [c]hoice from a specific set:
`choice /c {{AB}}`
- Prompt the current user to select a choice with a specific [m]essage:
`choice /m "{{message}}"`
- Prompt the current user to select a [c]ase-[s]ensitive [c]hoice from a specific set:
`choice /cs /c {{Ab}}`
- Prompt the current user to select a choice and prefer the [d]efault choice in a specific [t]ime:
`choice /t {{5}} /d {{N}}`
- Display help:
`choice /?`