System Grab Bag

View all TLDR pages from Windows (or from all pages)

choice

Prompt user to select a choice and return the selected choice index. More information: https://learn.microsoft.com/en-us/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 /?

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.