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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -