Change the color of the command prompt

If an old ANSI.SYS color fan then this might bring some joy, as one can colorize the command prompt console by changing the foreground and background color.

Edit the registry and add/update this setting (REG_DWORD):

[HKEY_CURRENT_USER \Software \Microsoft \Command Processor] DefaultColor = 0A (Black background with green text)

Colour codes available:
Code (Hex)Color
0black
1blue
2green
3cyan
4red
5magenta
6yellow/brown
7white
8gray
9bright blue
Abright green
Bbright cyan
Cbright red
Dbright magenta
Ebright yellow
Fwhite
Note one can also use the program "COLOR" from the command prompt to change the color.

COLOR 0A

Note one can also select properties for a shortcut to the cmd.exe, and select "Properties" and change the colors in the fan "Colors".

Updated: 23 September 2007

Comments:

  1. deepthi says:

    I have tried it and made my cmd prompt color ful thanx for ur post

  2. sandeep says:

    Thank you for the registry path for changing CMD propmt color permanently i like this very much nice tip i hope more tips to increase speed of cpu....=)

  3. sweety says:

    nice hacks are there thanx for providing these small tricks

  4. Vignesh Ravi says:

    Just right click on the "C:\" icon on the top left corner of the command prompt, select default and click on colors tab. That's it. Quite simple...

  5. anonymous says:

    Put this in a .txt file and rename it (anything).bat

    @echo off
    echo.
    echo.
    echo.
    color 0
    echo 0 black
    pause
    :a
    color 1
    echo 1 blue
    pause
    :b
    color 2
    echo 2 green
    pause
    :c
    color 3
    echo 3 cyan
    pause
    :d
    color 4
    echo 4 red
    pause
    :e
    color 5
    echo 5 magenta
    pause
    :f
    color 6
    echo 6 yellow/brown
    pause
    :g
    color 7
    echo 7 white
    pause
    :h
    color 8
    echo 8 gray
    pause
    :i
    color 9
    echo 9 bright blue
    pause
    :j
    color A
    echo A bright green
    pause
    :k
    color B
    echo B bright cyan
    pause
    :l
    color C
    echo C bright red
    pause
    :m
    color D
    echo D bright magenta
    pause
    :n
    color E
    echo E bright yellow
    pause
    :o
    color F
    echo F white
    pause
    :p

    echo EXIT?
    pause

  6. ... says:

    What dose it do?

Leave a Reply

Your email address will not be published. Required fields are marked *