"cmd.exe /c call F:\test\kiridasi.bat"
この後に引数を足したいのですが
"5_2,4_3,5_4,4_3,3_4,4_3,3_2"
このように""付きのままで受け渡したいが可能でしょうか。
public static void test() {
String filename = "cmd.exe /c call F:\test\kiridasi.bat";
try {
Process proc = Runtime.getRuntime().exec(filename);
System.out.println("実行中");
proc.waitFor();
System.out.println("実行終了");
} catch( Exception e ) { System.out.println(e); } }
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/11/20 09:59