mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 23:00:51 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
33
tldr/windows/choice
Normal file
33
tldr/windows/choice
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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 /?`
|
||||
Reference in New Issue
Block a user