title: Run a .bat script from Oracle
body: <p>I have a batch script wich, double-clicked,  populates a table with values imported from a .csv.
  I want to execute that script with a PL/SQL script..so I did:</p>
  
  <pre><code>    BEGIN
      SYS.DBMS_SCHEDULER.CREATE_JOB( job_name =&gt; 'e_job',
          job_type =&gt; 'EXECUTABLE',
          job_action =&gt; 'C:\WINDOWS\system32\cmd.exe',
          job_class =&gt; 'DEFAULT_JOB_CLASS',
          comments =&gt; 'Job to call batch script on Windows',
          auto_drop =&gt; FALSE,
          number_of_arguments =&gt; 3,
          enabled =&gt; FALSE);
  
      SYS.DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE( job_name =&gt; 'e_job', argument_position =&gt; 1, argument_value =&gt; '/q'); 
      SYS.DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE( job_name =&gt; 'e_job', argument_position =&gt; 2, argument_value =&gt; '/c'); 
      SYS.DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE( job_name =&gt; 'e_job', argument_position =&gt; 3, argument_value =&gt; '"E:\temp\StartLoad.bat"'); 
      SYS.DBMS_SCHEDULER.ENABLE( 'e_job' ); 
  
  
     END;
  
      BEGIN
      DBMS_SCHEDULER.RUN_JOB('example_job');
      END;
  </code></pre>
  
  <p>I didn't get any errors, but my table isn't containing any values.
  I must say that my script works fine if executed with double click in windows explorer</p>