Command Prompt for Windows




Command ASK

Function:

Ask a yes/no question and set the errorlevel respectively.

Syntax:

ASK [message]
messageSequence of characters.

Note:

Type ASK without any parameters to display the message :-

Continue (Y/N)?

The errorlevel is set to 0 for a yes response, 1 for a no response.

Example on using ASK.

Also see command PAUSE and Batch Files.