Here's our Windows XP Tip for.. April 9, 2007
Click Here to see a complete list of all of our previously released Tips!
Color it Blue
In a Unix or Linux OS, the command line is very important. Somewhere along the line, someone implemented the ability to have directory and exec files in different colors. This makes browsing a little more distinguishable and colorful. Is there a way to get NT to display directories and exec files in different colors?"

No, you can't set separate colors for file types. However, there are several ways to set the command prompt colors. To select new default colors for the command prompt window, right-click the Command Prompt icon and choose Properties. When the Properties dialog box opens, click the Colors tab. Use the radio buttons labeled Screen Text and Screen Background to select new colors. After you make the color selection, click OK.

If you're working in the command prompt window and would like to change the colors temporarily, you can use the Color command. The Color command uses the color combinations shown here.

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

The Color command syntax is

color BF

where B is the background color and F is the foreground. Choose your colors from the list shown above.

Let's suppose that you'd like a bright white background with light red letters. Type

color fc

and press Enter. For a blue background with white characters, type

color 17

and press Enter.