Changing Colors of the Dos prompt in a Batch File

I often need to write batch files in Windows NT Workstation 4.0. Is there a way to change the color of the Command Prompt window in a batch file? For example, I'd like a particular batch file to begin with the default, white on black. When the batch file reaches a specific point in its execution, I'd like to change the window to red on white. When the batch file finishes running, I'd like to change the colors back to the default."
You can use the Windows NT Workstation 4.0 Color command to set the Command Prompt window colors. To make the change, try a batch file similar to the one shown below. To generate the batch file, double-click the Command Prompt icon to open the Command Prompt window. Type

edit test.cmd

and press Enter. This opens the text editor, Edit.com. Now enter the following:

@echo off
pause
color FC
pause
color 07

After you type the code, choose File, Save to save the file in the current folder. At the prompt, type
test

and press Enter. When the batch file starts, the window appears in its default white on black. Press a key to continue past the pause, and the window changes to red on white. Press a key again, and the window returns to the default colors.

To set the window colors, use the following numbers for the foreground and background:

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

The first number is the background color and the second is the foreground. To get the default, white on black, enter

color 07

If you'd like to use light red on a green background, type

color 2C

and press Enter.

NT Server/Workstation