I am using Runtime.exec api as follows
Runtime re = Runtime.getRuntime();
Process p = re.exec("C:
The exe is getting called, but it executes in the calling directory instead of target directory.
I need to set the working directory as c:
Any/all help appericiated.
You need to explicitly set the working directory in a props file, and use the following constructor for the exec method:
public Process exec(String cmd,
[This only applies to Java 1.3 +]