0

I'm running a server that's started with a .bat file, and it's difficult to read one line of text from another as all one color. Is there something I can insert to have every new line of output automatically changed to a new, random color - different from the last?

greenblob
  • 1
  • 1
  • 1
    Is this a Mac OS command prompt, a Linux command prompt, a Windows command prompt? Also, if you give the reason you are wanting to do this, it will help us answer the question. – kojow7 Jun 13 '15 at 22:35
  • Windows command prompt - and I'm running a server that's started with a .bat file. I was wondering of there was code I could Insert to do this, it's pretty hard to read as all one color right now. – greenblob Jun 14 '15 at 02:00
  • possible duplicate of [How to have multiple colors in a Windows batch file?](http://stackoverflow.com/questions/4339649/how-to-have-multiple-colors-in-a-windows-batch-file) – Rafael Jun 14 '15 at 16:18
  • I usually invoke PowerShell when I want to output color. `powershell "write-host 'This text is red.' -f red"`... or green, yellow, blue, magenta, etc. See `powershell "help write-host"` for full syntax and a full list of supported color names. – rojo Jun 15 '15 at 12:05

0 Answers0