Couldn't run bat file through Java code -
problem same code below working on other machine windows 7. use windows 7, , bat file works well. if try run bat code written before, cmd window blink once , disappear.
s = path + "makeinfomap.bat"; try { p = run.exec(s); } catch (exception e) { system.out.println(e); e.printstacktrace(); } final int exitval = p.waitfor();
run don't walk link: when runtime.exec() won't.
it tell how gobble output , error streams , tell how call os's command interpreter when doing similar programs (although little out of date).
Comments
Post a Comment