title: Windows scheduled task
body: <p>I have created a Windows 7 scheduled task:</p>
  
  <pre><code>schtasks /create /tn MyTask /tr C:\temp\test\MyScript.bat /sc MINUTE
  </code></pre>
  
  <p>Problem is that this task seems to get executed by Windows but I think it can not find the running BAT script.  There is a quick flash window but can't read what the problem is.</p>
  
  <p>On the other hand, if I place the script under Windows/System32 everything works fine.</p>
  
  <pre><code>schtasks /create /tn MyTask /tr C:\windows\system32\MyScript.bat /sc MINUTE
  </code></pre>
  
  <p>Anyone knows why the second schedule task works compared to the first one?</p>
  
  <p>This whole thing is part of installing a program on a windows machine from a web page.  So I would like to have the BAT file installed in its correct directory and not the System32.</p>
  
  <p>Thanks for you help.</p>