Windows 7、7u25 32b JRE で Java システム プロパティ allowAmbigousCommands が機能しません。
System.setProperty("jdk.lang.Process.allowAmbigousCommands", "true");
try {
Process p= Runtime.getRuntime().exec("foo.bat > myOutput.txt");
} catch (IOException e) {
e.printStackTrace();
}
foo.bat の内容は次のとおりです。
エコー「ハローワールド」
また、 -Djdk.lang.Process.allowAmbigousCommands=trueを使用してチェックしましたが、成功しませんでした。どんな手掛かり?
前もって感謝します。