HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

CHOICE — Wait for keypress and set `ERRORLEVEL` in batch scripts. More information: <https://www.dosbox.com/w

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandwaitandclisetforchoicekeypress

Problem

How to use the CHOICE command: Wait for keypress and set ERRORLEVEL in batch scripts. More information: <https://www.dosbox.com/wiki/Commands#CHOICE>.

Solution

CHOICE — Wait for keypress and set ERRORLEVEL in batch scripts. More information: <https://www.dosbox.com/wiki/Commands#CHOICE>.

Prompt for yes/no:
CHOICE "{{prompt}}"

Code Snippets

Prompt for yes/no

CHOICE "{{prompt}}"

Context

tldr-pages: dos/CHOICE

Revisions (0)

No revisions yet.