title: How to deal with spaces within paths when using the system()?
body: <p>I am still new to C++ and am working out a way to open a program within my C++ program.
  The problem is that whenever I have spaces in my paths, it sees it as different parameters.</p>
  
  <pre><code>int _tmain(int argc, _TCHAR* argv[])
  {
      system("C:\\Users\\blah\\Desktop\\a\\ b.txt");
      return 0;
  }
  </code></pre>
  
  <p>The output I receive is:</p>
  
  <pre><code>'C:\Users\blah\Desktop\a\' is not recognized as an internal or external command, operable program or batch file.
  </code></pre>