Reputation: 175
It there a way in batch to change the background from black to blue. It must not change the default just for the window that is been run. so if i launch cmd later then it will be the default. If any one can help then thanks.
Upvotes: 6
Views: 14924
Reputation: 41
I am aware Max has already answered, but thought I would provide more detail.
The command is COLOR
, followed by a number and letter combo. Setting, for example, COLOR 0A
will make the background color black and the text green. Simply typing COLOR
will just set the background to black and the text to white (DEFAULT). Typing COLOR ?
will give you the values for colors. I will go ahead and provide them below.
Because of this and I was bored, I made a fun little script that flips through each combo, either by Background or by Text color.
https://github.com/jordanbr20/Batch-CMD-Colors/tree/main
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
Upvotes: 1