DefaultColor

HKLM\SOFTWARE\Microsoft\Command Processor

Data type Range Default value
REG_DWORD 0x00000000 | 0x00000001 - 0x000000FE 0

Description

Specifies a default background color and text color for the command processor 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 0x0, and the user has not entered a command to change the color, the command processor uses the colors specified for the console window in which the command processor runs.

Change method

To change the colors of a command window, click the system menu icon in the title bar, and then select either Defaults to change the settings for all instances of that window, or Properties to change the current window only. Click the Colors tab, and then use the color well options to change the values. This will change the colors for all console windows. To only change the colors for the command windows, you must edit the registry.

Related Entries

Page Image

Page Image