May 26, 2015

MS-DOS - Batch File Color Codes

Syntax : COLOR [Background] [Foreground]

Colour attributes are specified by 2 of the following digits, each digit can be any value as below :-

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

Example : COLOR 0B

* A black background colour with Light Aqua text.


No comments:

Post a Comment