title: How to properly quote file path with SCHTASKS
body: <p>I'm writing a small app that generates the contents of a batch file, using SCHTASKS to create scheduled tasks.  However, I simply cannot get the file path working correctly.  I need another set of eyes.</p>
  
  <pre><code>SCHTASKS /CREATE /TN "TASK1" /TR "\"C:\Program_Files\Spybot - Search &amp; Destroy\SpybotSD.exe\" \AUTOCHECK \AUTOFIX \AUTOCLOSE" /ST 01:00:00 /SC Daily /RU MyUser /RP MyPass 
  </code></pre>
  
  <p>I've looked at other threads here, and MS documentation, and I think I have that formed correctly.  However, it fails with the output:</p>
  
  <blockquote>
    <p>ERROR: Invalid syntax. Mandatory option '/sc' is missing.<br>
    Type "SCHTASKS /CREATE /?" for usage.<br>
    The system cannot find the path specified.</p>
  </blockquote>
  
  <p>I could use some advice here.</p>