how can i change colour in ms-dos ?

Discussion in 'QnA (read only)' started by chitvan, Jan 23, 2006.

Thread Status:
Not open for further replies.
  1. chitvan

    chitvan New Member

    Joined:
    Dec 17, 2005
    Messages:
    216
    Likes Received:
    0
    Trophy Points:
    0
    how can i change color of text & background in ms-dos in winxp sp2?

    i want to change text color white to bright green.
     
  2. yrana2002

    yrana2002 New Member

    Joined:
    Sep 23, 2005
    Messages:
    507
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    The Black Pearl
    Open ms-dos
    And type:
    Color 2

    For other colors:
    0 = Black
    1 = Blue
    2 = Green
    3 = Aqua
    4 = Red
    5 = Purple
    6 = Yellow
    7 = White
    8 = Gray
     
  3. mehulved

    mehulved 18 Till I Die............

    Joined:
    Jul 15, 2004
    Messages:
    5,790
    Likes Received:
    44
    Trophy Points:
    0
    Location:
    India, Mumbai, Marine Lines
    u can also right click on the the dos window in taskbar and click on properties, you can change the colour from there
     
  4. OP
    OP
    chitvan

    chitvan New Member

    Joined:
    Dec 17, 2005
    Messages:
    216
    Likes Received:
    0
    Trophy Points:
    0
    thanx
     
  5. shovik

    shovik Banned

    Joined:
    Jun 8, 2005
    Messages:
    277
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Hooghly
    You can also do combinations of two colors for both text and background.
    The syntax is as follows:
    Sets the default console foreground and background colors.

    COLOR [attr]

    attr Specifies color attribute of console output

    Color attributes are specified by TWO hex digits -- the first corresponds to the background; the second the foreground. Each digit can be any of the below values.
    0 = Black 8 = Gray
    1 = Blue 9 = Light Blue
    2 = Green A = Light Green
    3 = Aqua B = Light Aqua
    4 = Red C = Light Red
    5 = Purple D = Light Purple
    6 = Yellow E = Light Yellow
    7 = White F = Bright White

    If no argument is given, this command restores the color to what it was when CMD.EXE started. This value either comes from the current console window, the /T command line switch or from the DefaultColor registry value.

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

    Regards,
    Shovik.
     
  6. JGuru

    JGuru Well-Known Member

    Joined:
    Dec 25, 2005
    Messages:
    1,726
    Likes Received:
    32
    Trophy Points:
    48
    Location:
    Space-time continuum
    You can also change color through C programming!! For normal users create a link to 'DOS Console' in the
    dekstop, and click on 'Properties' .There you can change all the options like memory, foreground color,
    backgrounf color etc.,
     
Thread Status:
Not open for further replies.

Share This Page