title: Run batch file from Java code
body: <p>I am trying to run a batch file that is in another directory from my Java executable. I have the following code :</p>
  
  <pre><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) {
      }
  </code></pre>
  
  <p>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.</p>