I am trying to run a batch file that is in another directory from my Java executable. I have the following code :
try {
Process p = Runtime.getRuntime().exec("cmd /c start \"C:\\Program Files\\salesforce.com\\Data Loader\\cliq_process\\upsert\\upsert.bat\"") ;
} catch (IOException ex) {
}
The result is that the program opens a cmd window in the root directory where the program was run at and doesn't access the file path I provided.