title: Windows 7 task scheduler keeps returning operational code 2
body: <p>I set up a scheduled task to run under my account.  Everything it runs, even if it is successful, returns an operational code of (2).  I looked this up this error code at the below link, and it claims it cannot find the specific file.</p>
  
  <p><a href="http://www.hiteksoftware.com/knowledge/articles/049.htm" rel="noreferrer">http://www.hiteksoftware.com/knowledge/articles/049.htm</a></p>
  
  <p>Even if I do something <em>very</em> simple, I get back operational code of (2).  For example:</p>
  
  <pre><code>run program: cmd.exe
  
  start in path: c:\windows\system32
  </code></pre>
  
  <p>I start the task and I see the process running in my task manager, so I kill the task.  I then check in the history of scheduled task and it shows up as (2).  </p>
  
  <p>Something more realistic of what I am doing:</p>
  
  <pre><code>&lt;?
  /* file in c:\php\test.php */
  echo "hello";
  ?&gt;
  </code></pre>
  
  <p>run program: <code>php.exe</code></p>
  
  <p>start in path: <code>c:\php</code></p>
  
  <p>arguments: <code>-f test.php</code></p>
  
  <p>Everything works in the command line, but Windows schedule task keeps returning operational code (2).  I should be seeing an operational code of (0), which means successful, correct?  </p>