|
We run
this code:
try
{
Runtime r = Runtime.getRuntime(); Process p = r.exec(Cmd); } catch (java.io.IOException e) { System.out.println("In exception handler"); } By
using Process you can wait until the process is finished if you want with a
p.waitFor() or monitor the process output with p.getOutputStream() . Hope
this helps
|
