title: System function seems to ignore quote marks
body: <p>I'm running the following code (on Windows 7, if it makes a difference):</p>
  <pre><code>char temp[20000];
  sprintf_s(temp, 20000, &quot;\&quot;C:\\Program Files\\Mozilla Firefox\\firefox.exe\&quot; \&quot;http://www.tvtak.com/servlet/Gateway/?C=addShows&amp;channel=%s&amp;show=%s\&quot;&quot;, _channels[chId], name);
  system(temp);
  </code></pre>
  <p>On running, the console displays:</p>
  <blockquote>
  <p>'C:\Program' is not recognized as an
  internal or external command, operable
  program or batch file.</p>
  <p>'channel' is not recognized as an internal or
  external command, operable program or
  batch file.</p>
  <p>'show' is not recognized
  as an internal or external command,
  operable program or batch file.</p>
  </blockquote>
  <p>But when I get the value of 'temp' via QuickWatch and paste it to CMD, it works fine. What's going on here?</p>
  <p>I should mention that the parameters I'm appending to the string contain non-latin characters. Could this have something to do with it?</p>