title: SP2-0310: unable to open file .sql
body: <p>I am calling batch file from my java program which in result execute some .sql files.
  the batch script is below:</p>
  
  <pre><code>set part1= CREATE OR REPLACE DIRECTORY REPORT AS '
  set total=%part1%%4';
  echo %total% &gt; DIR_REPORT.sql
  echo exit; &gt;&gt;DIR_REPORT.sql
  sqlplus %1/%2@%3 @./DIR_REPORT.sql
  sqlplus %1/%2@%3 @./PACKAGE_SCRIPTv2.sql
  </code></pre>
  
  <p>and my java code is :</p>
  
  <pre><code>Runtime run = Runtime.getRuntime();
  System.out.println("Start Running the batch file");
  Process p = run.exec(new String[]{"cmd.exe","/c", "start", "C:/Users/sony/Documents/NetBeansProjects/CodeReview/src/codereview/install.bat",i,j,m,l});
  System.out.println("Completed");
  </code></pre>
  
  <p>it is giving error:</p>
  
  <pre><code>SP2-0310: unable to open file
  </code></pre>
  
  <p>The first file generated using the batch (DIR_REPORT) is being executed but my PACKAGE_SCRIPTv2.sql is not being executed but raises error, please help me what to do.</p>
  
  <p>although when a run batch file mannualy from cmd everything works fine...</p>