How to have multiple colors in a Windows batch file?

前端 未结 12 1484
我寻月下人不归
我寻月下人不归 2020-11-22 01:05

I was wondering if its possible to have different colored text on the same line in a Windows batch file, for example if it says

echo hi world
12条回答
  •  太阳男子
    2020-11-22 01:32

    Yes, it is possible with cmdcolor:

    echo \033[32mhi \033[92mworld
    

    hi will be dark green, and world - light green.

提交回复
热议问题