title: PHP CLI and Task Scheduler problem
body: <p>I thought I had set up a successful schedule in Windows to run a PHP script. But all I got was an error which slaps only when run through the task scheduler.</p>
  
  <p><strong>Here is how I run the task:</strong></p>
  
  <p>I created a batch file <em>runCron.bat</em>:</p>
  
  <pre><code>start php.exe reportGenerator.php
  </code></pre>
  
  <p>and placed <em>reportGenerator.php</em> in the same folder as of the batch file.</p>
  
  <p>When I manually execute the batch file, all is well. But when the same batch file is called by the task scheduler, PHP CLI throws the following error:</p>
  
  <blockquote>
    <p>Could not open input file:
    reportGenerator.php</p>
  </blockquote>
  
  <p>What would have been missed? I understand it's a path issue, but where exactly is the issue?</p>
  
  <p>Thank you for any help.</p>