In my Java application, I want to run a batch file that calls \"scons -Q implicit-deps-changed build\\file_load_type export\\file_load_type\"
scons -Q implicit-deps-changed build\\file_load_type export\\file_load_type
It seems t
Runtime runtime = Runtime.getRuntime(); try { Process p1 = runtime.exec("cmd /c start D:\\temp\\a.bat"); InputStream is = p1.getInputStream(); int i = 0; while( (i = is.read() ) != -1) { System.out.print((char)i); } } catch(IOException ioException) { System.out.println(ioException.getMessage() ); }