how can i change colour in ms-dos ?

Status
Not open for further replies.

chitvan

Journeyman
how can i change color of text & background in ms-dos in winxp sp2?

i want to change text color white to bright green.
 

yrana2002

Ambassador of Buzz
Open ms-dos
And type:
Color 2

For other colors:
0 = Black
1 = Blue
2 = Green
3 = Aqua
4 = Red
5 = Purple
6 = Yellow
7 = White
8 = Gray
 

mehulved

18 Till I Die............
u can also right click on the the dos window in taskbar and click on properties, you can change the colour from there
 

shovik

Banned
You can also do combinations of two colors for both text and background.
The syntax is as follows:
Sets the default console foreground and background colors.

COLOR [attr]

attr Specifies color attribute of console output

Color attributes are specified by TWO hex digits -- the first corresponds to the background; the second the foreground. Each digit can be any of the below values.
0 = Black 8 = Gray
1 = Blue 9 = Light Blue
2 = Green A = Light Green
3 = Aqua B = Light Aqua
4 = Red C = Light Red
5 = Purple D = Light Purple
6 = Yellow E = Light Yellow
7 = White F = Bright White

If no argument is given, this command restores the color to what it was when CMD.EXE started. This value either comes from the current console window, the /T command line switch or from the DefaultColor registry value.

The COLOR command sets ERRORLEVEL to 1 if an attempt is made to execute the COLOR command with a foreground and background color that are the same.

Regards,
Shovik.
 

JGuru

Wise Old Owl
You can also change color through C programming!! For normal users create a link to 'DOS Console' in the
dekstop, and click on 'Properties' .There you can change all the options like memory, foreground color,
backgrounf color etc.,
 
Status
Not open for further replies.
Top Bottom