CMD をポップアップしてから、次のようなコマンドを実行しようとしています。
echo SOMETHING && echo SOMETHING && mkdir....など
私はCMDを開くことができましたが、JAVAは文字列内の「&」を認識していないようです
「&」の前でのみ実行される最初のコマンド
任意のヒント ?
try {
// Execute command
String command = "cmd /c start echo hello baby & echo the world";
Process child = Runtime.getRuntime().exec(command);
// Get output stream to write from it
} catch (IOException e) {
}
}
}