0
嗨的應用程序,我試圖卸載使用GUID的產物,它工作得很好,當我直接在命令提示符下執行它但是,我得到一個錯誤信息,當我嘗試使用Golang卸載其GUID
執行它我的代碼:
// Powershell_Command
package main
import (
"fmt"
"os/exec"
)
func main() {
out, err := exec.Command("cmd","/C","wmic","product","where","IdentifyingNumber=\"{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}\"","call","uninstall").Output()
fmt.Println("err::",err)
fmt.Println("out::",string(out))
}
輸出爲:
ERR ::退出狀態2147749911
出::
由於提前
這個問題如何與PowerShell相關? –