Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2
HKCU\Software\Microsoft\Command Processor
Data type | Range | Default value |
---|---|---|
REG_DWORD |
0x0 | 0x1–0xFE |
0x0 |
Specifies a default background color and text color for the Command Processor (Cmd.exe) window. The value consists of two hexadecimal digits. The first digit specifies the background color; the second digit specifies the text color. The hexadecimal values correspond to colors in the following table.
Hexadecimal value |
Color |
0 |
Black |
1 |
Blue |
2 |
Green |
3 |
Aqua |
4 |
Red |
5 |
Purple |
6 |
Yellow |
7 |
White |
8 |
Gray |
9 |
Light Blue |
A |
Light Green |
B |
Light Aqua |
C |
Light Red |
D |
Light Purple |
E |
Light Yellow |
F |
Bright White |
This entry is used only when its value is valid and not 0x0, and when the user has not specified the window color by using the COLOR or /T commands. Values are not valid if the background color and the text color are identical, such as 0x55. If the value of this entry is not valid or is 0x0, and the user has not entered a command to change the color, then Cmd.exe uses the colors specified for the console window in which Cmd.exe runs.
If you make changes to the value of this entry by editing the registry directly, you must restart Cmd.exe to make the changes effective.
Notes
DefaultColor can appear in HKLM and HKCU. If both appear in the registry, then the value of the entry in HKCU takes precedence over the value in HKLM.
The datatype of this entry can be either REG_DWORD or REG_SZ.