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.

Simple commands in MS-DOS prompt

  • ASSIGN - Assign a drive letter to an alternate letter.
  • ASSOC - View the file associations.
  • CD - Changes directories.
  • CHCP - Supplement the International keyboard and character set information.
  • CHDIR - Changes directories.
  • CHKDSK - Check the hard disk drive running FAT for errors.
  • CHKNTFS - Check the hard disk drive running NTFS for errors.
  • CLS - Clears the screen.
  •  CONTROL - Open control panel icons from the MS-DOS prompt.
  •  DATE - View or change the systems date.
  • DEL - Deletes one or more files.
  • DIR - List the contents of one or more directory.
  • SHUTDOWN - Shutdown the computer from the MS-DOS prompt.