posted 16 years ago
I am having following code
Process OBJ=Runtime.getRuntime().exec("C:\\test.cmd");
int exitValue=OBJ.waitFor();
System.out.println(exitValue);
In test.cmd i am calling the export utility of Oracle ie exp command.
The problem is the export gets done but control does not returns back to my code,thus OBJ.waitFor() does not gets complete.
Please Advise.