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

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
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish