Tuesday, August 19, 2008

Change color of dos screen

Whenever we run the cmd prmt. by default the color of the back-ground is black and the text getting typed is white....have u ever wished to change its color or Thought can the color be changed answer is Yes.

To Change DOS Screen's Background Color And The Text Color
1. Open your registry (press win+r and type regedit, hit enter)

2. Goto
[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]

3. u'll find "DefaultColor"You can replace it's value with a two-digit hexadecimal number, in which the first digit selects a background color and the second a foreground color.

The hexadecimal codes are:
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

For example
A value of F0, , would give black text on a white background, and 1E would yield yellow text on a blue background.
The change should take effect the next time you open a console window.

No comments: