我想使用ConvertTo-Html ps命令将下图中的输出保存到文件中。
这是我的命令:
node index.js -f ..\IT -u 20 -s 0.5 | ConvertTo-Html | Out-File output.htm
这是输出:
我在做什么错了?
答案 0 :(得分:2)
If you are after an exact html representation of the console output,
you may be better off with
An alternative is
Both copy from $host.ui.rawui.GetBufferContents($rec)
use a fixed width font and apply colours. So the output can be copied as text from the page and take less space than a picture.