Microsoft DOS keyb command

Quick links

About keyb
Availability
Syntax
Parameters
Examples
Chcp command

About keyb

Keyb is used to change the layout of the keyboard used for different countries.

Availability

The keyb is an external command that is available in the below Microsoft operating systems.

All Versions of MS-DOS
Windows 95
Windows 98
Windows NT

Syntax

Configures a keyboard for a specific language.

KEYB [xx[,[yyy][,[drive:][path]filename]]] [/E] [/ID:nnn]

xxSpecifies a two-letter keyboard code.
yyySpecifies the code page for the character set.
[drive:][path]filenameSpecifies the keyboard definition file.
/ESpecifies that an enhanced keyboard is installed.
/ID:nnnSpecifies the keyboard in use.

Parameters

KEYB CODE KEYB ID
BE120
CF058
DF159
FR/120189/120
GR129
IT/142141/142
LA171
NL143
NO155
PO163
SF150
SG000
SP172
SU153
SV153
UK/168166/168
US103

Examples

Loading the Keyboard as United States format in MS-DOS / Windows 3.x:
keyb us, ,c:\dos\keyboard.sys

Loading the Keyboard as United States format in Windows 95 / Windows 98:
keyb us, ,c:\windows\command\kyeboard.sys