How to echo with different colors in the Windows command line

前端 未结 23 1255
野性不改
野性不改 2020-11-22 08:55

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.

23条回答
  •  忘了有多久
    2020-11-22 09:43

    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

    http://www.codeproject.com/Articles/17033/Add-Colors-to-Batch-Files

提交回复
热议问题