title: How do I open an .exe from another C++ .exe?
body: <p>What I want to do is open an .exe from another .exe. I really don't know how to do this, so I searched the internet. I tried some suggested methods from the internet, but it didn't work.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;windows.h&gt;
  using namespace std;
  
  int main()
  {
      system ("OpenFile.exe");
      system ("pause");
      return 0;
  }
  </code></pre>
  
  <p>When I run it in DEV C++, it compiles, but I get a error. Can someone please help me?</p>