How do I change the command prompt window’s color within a batch file?

John Savill

January 8, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. You can use the Windows NT Workstation 4.0 color command to set the command prompt window’s colors. The first number sets the background color; the second number sets the foreground color. For example, the command

color 06

sets the window’s color to yellow on black. The following table lists the color options.

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

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like