If your wanting to add some color to the Windows Command Prompt you can use the 'color' line to make the box appear more stylish. Useless to most people, but add the line to your batch files for a little bit of excitment to an otherwise droll boring task.
Color attributes are specified by TWO hexdigits -- the first corresponds to the background; the second the foreground. Each digit can be any of the following values:
| 0 = Black | 1 = Blue |
| 2 = Green | 3 = Aqua |
| 4 = Red | 5 = Purple |
| 6 = Yellow | 7 = White |
| 8 = Gray | 9 = Light Blue |
| A = Light Green | B = Light Aqua |
| C = Light Red | D = Light Purple |
| E = Light Yellow | F = Bright White |
For example: if you type color fc you will get a red on bright white.
Note: The COLOR command sets ERRORLEVEL to 1 if an attmpt is made to execute the COLOR commmand with a foreground and background color that are the same.

Set as favorite
Bookmark
Email this
Hits: 378
Comments (0)

Write comment







