2013-07-03 150 views

回答

0

第二个选项后建模代码我认为真正的问题是PowerShell如何在Java执行的控制台环境中运行时处理STDIN流的方式。我使用这个技巧来运行带有powershell任务或直接powershell脚本执行的批处理脚本。添加InputFormat none以避免STDIN挂起。

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