change the colour in the command prompt

Change the color in the command prompt

follow the listed bullets
  • open yo notepad
  • copy and paste the code given below
@ echo off
echo:
echo ……………………………
echo Press 1 for green, 2 for red or 3 for blue, or 4 for exit
echo ……………………………
set /p m=Type 1, 2, or 3, or 4, and press enter:
echo:
if %m%==1 goto 1
if %m%==2 goto 2
if %m%==3 goto 3
if %m%==4 goto 4
:1
color 0a
echo This is the green
goto 4
:2
color 04
echo This is the red
goto 4
:3
color 06
echo This is the blue
goto 4
:4
Pause
goto end
:end
  • save the file by the name yo wish followed by the extension "color.bat"
  • double click,command prompt window will appear type respective number to change the colour

1 comments:

  1. Great blog! I am agree with the author's way of thinking.
    The damage of information almost always directs an end user to a a sense of disappointment.
    But for the simplicity of consumers, IT professionals have proposed an alternative for loss of data issues.
    If a removal of data problem has taken place, person need to know which tool or software to apply so that he can handle this condition of information damage.
    outlook data

    ReplyDelete

Post a comment

Sajan shrestha. Powered by Blogger.

Popular Posts

© 2012 Computer tricks and Pranks, AllRightsReserved.

Designed by Computer Tricks and Pranks