Pages

23/04/2017

Change Background Colors and Text Colors in Command Prompt

STEP 1:
Open "Command Prompt" by entering the keyword "cmd" in Run.






STEP 2:
Use the command "cls" to clear the screen.




STEP 3:
Use the below command to change the Text Color in Command Prompt.

SYNTAX:
"color TextColor"

FOR EXAMPLE:
"color a"


STEP 4:
Use the below command to change the Background Color in Command Prompt.

SYNTAX:
"color BackgroundColor"

FOR EXAMPLE:
"color a0"


STEP 5:
Use the below command to change the Background Color and Text Color in Command Prompt.

SYNTAX:
"color BackgroundColor TextColor"

FOR EXAMPLE:
"color 1a"


STEP 6:
Use Exit command to come out of the Command Prompt.
"exit"




NOTE:
Here, Hexadecimal Values are used a colors which are 0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f.

Hexadecimal Values for most of the common colors.
1 - Blue
a - Green
c - Red
e - Yellow
f - White

Other Related Links