title: Escape double quote in VB string
body: <p>I have used following piece of code to execute <code>schtasks</code> command from VB6.  While executing it, ignores folder if they contains spaces.  For example, <code>"C:\program files\test\test.exe"</code> will be converted to <code>"c:\program "</code>.  How do I solve this issue?</p>
  
  <pre><code>MyAppname =  Chr(34) &amp; App.Path &amp; "\" &amp; App.EXEName &amp; ".exe" &amp; Chr(34)
  StrCommand = "schtasks /create /sc ONLOGON /RL HIGHEST  /tn myapp  /tr " &amp; MyAppname  
  Shell StrCommand, vbHide   
  </code></pre>
  
  <p>New task added as <code>"c:\program"</code> instead of <code>"C:\program files\test\test.exe"</code></p>
  
  <p>Thanks in advance.</p>