14 Jul 2012

Changing the color of the MS_DOS window

            COLOR is the command used to change the foreground and background colors in MS-DOS window.

-COLOR attribute
           
attribute specifies color attribute of the console output.
Color attributes are specified by TWO hex digits. First digit corresponds to the background, the second digit corresponds to the foreground. Each digit has the following values.

 

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

"COLOR 9D" produces Light Purple on Light Blue.

No comments:

Post a Comment