You are on page 1of 1

QUERY "prompt", [key-list] <options>

QUERY filename, [key-list] <options>


When QUERY is run, it displays the text specified on the command line
(either displaying the quoted string, or outputting the contents of the
specified file, depending on how QUERY was invoked), and then awaits
a valid response. A valid response is one contained in the key-list. The
key-list can contain function keys by enclosing them in []s (e.g. [f10]).
If no key-list is specified, any key is acceptable. An errorlevel is
returned based on the response's position in the key-list (i.e. the 1st
key in the key-list is errorlevel 1, the 2nd is level 2, etc.)
The options for QUERY are:
/t# /a# /b# /e# - Numbers controlling the color of the text, the
A and B highlight levels and the entry blank.
/c - Clears the screen before displaying the prompt
(the default if the prompt comes from a file).
/x# /y# - Controls the positioning of the entry field for input.
/s# - Controls which section of the file will be displayed.
Sections are delimited by ^Ds (the default is 0).
/p="Prompt text" - Allows specification of both a file and a prompt string.
/g - Enables a short beep when an invalid response is chosen.

You might also like