外部プログラムから終了値を読み取ろうとしていますが、常に 0 です。
String command = ("cmd /c start /wait "+ Script[0]);
Process exec = runtime.exec(command);
int waitFor = exec.waitFor();
System.out.println(exec.exitValue); //always 0
System.out.println(waitFor); //always 0
プログラムはモジュールのプログラミングに使用され、エラーがあったかどうかを知る必要があります。
アプリケーションの終了値を取得するには?