title: windows C system call with spaces in command
body: <p>I cannot make system calls with spaces in the names and parameters. For example:</p>
  
  <pre><code>system("c:\\program files\\something\\example.exe c:\\my files\\example.txt");
  </code></pre>
  
  <p>I have tried escaping in every way I know how, and NOTHING works. I have tried:</p>
  
  <pre><code>system("\"c:\\program files\\something\\example.exe\" \"c:\\my files\\example.txt\"");
  </code></pre>
  
  <p>and</p>
  
  <pre><code>system("c:\\program^ files\\something\\example.exe c:\\my^ files\\example.txt");
  </code></pre>
  
  <p>Neither work. I still get 'c:\program' is not a recongnised internal or external command</p>
  
  <p>This is really driving me mad... I need to call and pass parameters that have spaces in them. I cannot use the short notation for reasons I won't go into.</p>
  
  <p>I have tried with ' quotes instead of " quotes, still doesn't work. I have tried putting quotes around the whole thing and quotes around the spaces and that doesn't work.</p>
  
  <p>Does anyone know how to do it properly?</p>