标签: powershell
我有一个运行.exe工具的powershell脚本。
& tool.exe
如果我从cmd控制台运行脚本,则exe输出不是通过cmd控制台编写的...
C:\>powershell .\script.ps1
在Insead中,如果我从Powershell控制台运行脚本,一切都很好。
您知道如何使cmd控制台中的exe输出可见吗?
答案 0 :(得分:0)
我想我是这样解决的:
& tool.exe | Write-Host
它不是很聪明,但是可以工作...