I know that the color bf
command sets the colors of the whole command line window but I wanted to to print one single line in a different color.
Thanks
I know that the color bf
command sets the colors of the whole command line window but I wanted to to print one single line in a different color.
Thanks
You'll need to echo an ANSI escape code sequence to alter the text colour: http://en.wikipedia.org/wiki/ANSI_escape_code
Another very good source of these escape codes is http://ascii-table.com/ansi-escape-sequences.php
We used to do this with ANSI terminal codes. Not sure if they still work, but you could try them.
you could use cecho.. you can also use it to embed right into your script so you dont have to carry along a .com or .exe