Command Prompt for Windows




Special Keys

There are a number of Special Keys that can not be specified with a single character, instead, they are specified by enclosing the name of the key in braces. For example, the Caps Lock key is specified by "{CAPLOCK}".

Valid Special Key names include :-

CAPSLOCKCaps Lock
NUMLOCKNum Lock
SCROLLOCKScroll Lock
ESCAPE or ESCEscape
ENTEREnter
PRTSCPrint Screen
TABTab
BREAKBreak
BACKSPACE or BSBack Space
DELETE or DELDelete
INSERTInsert
LEFTLeft Arrow
RIGHTRight Arrow
UPUp Arrow
DOWNDown Arrow
PGUPPage Up
PGDNPage Down
HOMEHome
ENDEnd
F1 to F12Function keys F1 to F12

Similarly, the characters ~+^%(){} each have some special purpose or meaning, and to specify the equivalent key, the character must be enclosed in braces. For example, the plus key is specified by "{+}" and not "+".