标签: powershell powershell-3.0
如何从命令获取输出?
为简单起见:
$proc = Start-Process ls -PassThru -Wait -ArgumentList '-a' $OutPut = $proc.StandardOutput.ReadToEnd()
错误:
<Error retrieving property - InvalidOperationException>