且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 PowerShell 中捕获 EXE 输出

更新时间:2022-12-17 08:51:20

您期望的输出是标准错误还是标准输出?

Does the output you're expecting go to standard-error or standard-out?

这行得通吗?

& $gpgLocation --import "key.txt" 2>&1 | out-file gpgout.txt