2013-07-03 151 views

回答

0

第二個選項後建模代碼我認爲真正的問題是PowerShell如何在Java執行的控制檯環境中運行時處理STDIN流的方式。我使用這個技巧來運行帶有powershell任務或直接powershell腳本執行的批處理腳本。添加InputFormat none以避免STDIN掛起。

powershell -NoLogo -Noninteractive -InputFormat none -Command "%cmd%"