【发布时间】:2013-09-10 17:19:25
【问题描述】:
有没有办法在powershell中更新命令输出的当前行?
我知道如何写到同一行:
Write-Host "hello " -NoNewLine
Write-Host "world!" -NoNewLine
但是有没有办法完成替换当前行?类似:
Write-Host "hello "
Write-Host "world!" -ReplaceLine
提前致谢!
解决方案:
Write-Host "hello " -NoNewLine
Write-Host "`rworld!"
【问题讨论】:
标签: powershell command-line output