|
COLOR
Changes the background and text colors in a DOS window. Use
COLOR followed by a two digit hex code. The first is the
background, the second is the text.
Syntax
color [fb]
Parameters
fb : Sets the foreground f and background g colors.
| 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 |
You cannot set both attributes to the same color.
Examples
To change the Command Prompt window foreground color to red
and background to white, type:
color FC
COLOR 70 reverses the default setting.
Batch File Commands
|