Using the following code, I can get the .bat file to execute (no GUI, just the following lines). However, when I add it in as a method of the ActionListener for the button (its a Java Swing app), the .bat file never executes. Any ideas?
Runtime runtime = Runtime.getRuntime();
try {
Process proc = runtime.exec("cmd /c start C:\\Users\\someName\\Desktop\\test.bat");
} catch (IOException e1) {
e1.printStackTrace();
}