Archived

This topic is now archived and is closed to further replies.

Changing text color...

This topic is 5149 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do you change the text color in a windows batch file? I have just made a program that cleans my directories of unwanted files, and I want to add some spice to it and add some color to the text. How exactly do you go about doing this?

Share this post


Link to post
Share on other sites
I haven''t actually heard of any commands that would actually change the color of the text when using a batch script. The only solution for this would be to create your own program that changes the color of the text/background itself.

If you can write in the C/C++ langauge, here is a good site with a tutorial on how to do that: Game Tutorials

Hope that helps.

======
Very good programming site:Programmers Unlimited
Guest Anonymous Poster
I''m running Windows 2000 and you can just type color then a number to change the color

color 1 - dark blue
color 2 - green
color 4 - dark red

Share this post


Link to post
Share on other sites
But how do you change the color of individual lines of text...

Like:

@ECHO OFF
ECHO This line is GREEN
ECHO This line is RED, while the previous line is still GREEN

In other words, I want to know how to change the color of individual lines...

Share this post


Link to post
Share on other sites