This page is edited from the 1cmdfaq.txt faq-file contained in
mytscmd.zip
command line interface (CLI) collection. That zipped file has much
additional material, including a number of detached .cmd script
files. It is recommended that you also get the zipped version as a
companion.

There is no easy answer. The COLOR command affects the entire
screen, not just the next output. That's not what we want in this
item. In MS-DOS+Win..95/98/ME one can use ANSI.SYS for the task. In
NT/2000/XP it also is possible, but not quite simple. Therefore, let's
start with special solutions. One option is to use "ECHOC.EXE Echo in
colors" tool for the task. It is a Turbo Pascal program included in
the tscmd.zip package. For example one might have

The advantage of the CONFIG.NT method over using an external program
such as my ECHOC.EXE to output in colors is that it is faster. Note
that there are limitations to the screen display modes the method
can handle. The safest and the most obvious is to use to the 80x25
mode.