How to preserve colored output (stdout and stderr) for cmd scripts from powershell?

前端 未结 2 1368
旧巷少年郎
旧巷少年郎 2021-02-20 04:24

We have build scripts for cmd. For example here is output of one of them.

\"Colored

2条回答
  •  灰色年华
    2021-02-20 04:53

    At first, I didn't think it was possible.

    But, after a little searching I found this blog post, Colorized capture of console screen in HTML and RTF.

    You should be able to use the PowerShell script from there to create what you need.

提交回复
热议问题