I need to run a .bat file from java. This is what I got:
public class CallingBatch {
}
Now, the thing is I don't get any error's or any other type of feedback, nothing happens.
Any suggestions?
public class CallingBatch {
public static void main(String[] args) {
Runtime run = Runtime.getRunt ime();
}try {
System.out.prin tln("FINISHED") ;run.exec("cmd start /c C:/batfile.bat");
} catch (Exception e) {e.printStackTra ce();
}}
Now, the thing is I don't get any error's or any other type of feedback, nothing happens.
Any suggestions?
Comment