Color Command In Windows Server 2008
In this article I will discuss about how to use Color command in Windows Server 2008.
Introduction
Color command requires Windows 7, Windows Server 2008,Windows Vista and Windows XP. Color command is one of the Windows Server 2008 command line tool. Color command is use to change the text and background colors of the command prompt window.
Syntax
- If Color command is used without parameters, then this command changes the color to the default values used when CMD.EXE started.
- Do not apply space character between T and B
Parameters
Parameters of Color command |
Description |
<T> |
Sets foreground( text) color. |
<B> |
Sets background color. |
List of values for T and B
Code Number |
Color |
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 |
Light White |
Example
Background color changes to blue and color of text changes to white within command prompt window.
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here