You are here: Home Guides & Tutorials Software Guides How to Add Color to Command Prompt Box

PC Offensive

How to Add Color to Command Prompt Box

E-mail Print PDF

If your wanting to add some color to the Windows Command Prompt you can use the 'color' line to make the box appear more stylish. Useless to most people, but add the line to your batch files for a little bit of excitment to an otherwise droll boring task.

  • Click Start
  • Type: cmd
  • When the Command Prompt appears, type color ? for options.
  • Color attributes are specified by TWO hexdigits -- the first corresponds to the background; the second the foreground. Each digit can be any of the following values:

    0 = Black1 = Blue
    2 = Green3 = Aqua
    4 = Red5 = Purple
    6 = Yellow7 = White
    8 = Gray9 = Light Blue
    A = Light GreenB = Light Aqua
    C = Light RedD = Light Purple
    E = Light YellowF = Bright White

    For example: if you type color fc you will get a red on bright white.

    Note: The COLOR command sets ERRORLEVEL to 1 if an attmpt is made to execute the COLOR commmand with a foreground and background color that are the same.

    Add Color To Command Prompt Box


    Comments (0)add comment

    Write comment
    smaller | bigger

    security image
    Write the displayed characters


    busy
     
    Malwarebytes. Destroying malware, one byte at a time

    Advertisment (text)


    PC-Offensive

    PC Offensive Hardware, Software and Gaming News, Reviews, Videos and Tech Help. Visit: PC Offensive.

    Dilatory Games

    Dilatory Games - Only The Best Free Flash Games

    Dilatory Games - Only The Best Free Flash Games

    Word Flippa

    http://www.wordflippa.com Fun with Facebook, flip your words around with Word Flippa
    Home | Live Chat | Reviews | Guides | Tech Help Forums | Malware Guides | Hints & Cheats | Downloads | Videos | Gallery | Members | Calender | Contact Us