Command Prompt for Windows




Command GETKEY

Function:

Wait for a single keypress from the user. The character entered is stored in an environment variable called GETKEY.

Syntax:

GETKEY [message]
messageSequence of characters.

Note:

Also see command GETSTR, GETNUM and Batch Files.