title: Turbo C++ system function running an executable
body: <p>How to run any exe file from turbo c++? I know that I should stop using turbo c++ and move one to Dev or Code::Blocks, but my school doesn't agree so I gotta wing it.</p>
  
  <p>I just want to know how to run a file with or without the system() function.
  Any kind of advice is welcome </p>
  
  <p>Here's what I have tried so far: </p>
  
  <p>1</p>
  
  <pre><code>#include&lt;process.h&gt;
  int main()
  {
      system("tnfsv13.exe");     //tnfsv being a 16-bit application(The need for slowness v 13)
      return 0;
  } 
  </code></pre>
  
  <p>2</p>
  
  <pre><code>  #include&lt;process.h&gt;
      int main()
      {
          system("tnfsv13.bat");     
           return 0;
      } 
  </code></pre>
  
  <ol start="3">
  <li><p>tnfsv13.bat:</p>
  
  <p>start "c:\TurboC3\BIN\" tnfsv13.exe</p></li>
  </ol>
  
  <p>NOTE: Just a doubt, you guys: system() is not working in windows XP. I tried it using dosbox in windows 7 and it works well, but in XP it does absolutely nothing. Not even the system("dir") command seems to work but system(NULL) returns 1. Any guesses why?</p>
  
  <p>Thanks.</p>