title: start program using cmd
body: <p>I try to make a C++ program that opens some other programs(using cmd).The code:</p>
  
  <pre><code>int main(){
  int i=0,t;
  string progs[100];
  fstream db("db.txt",ios::in);
  while(getline(db,progs[i++])) {}
  
  
  for(t=0;t&lt;i-1;t++) {
      string open="start "+progs[t];
      system(open.c_str());
  }
  
  system("pause");
  return 0;
  }
  </code></pre>
  
  <p>Program is located on desktop , and works well for all files.
  The problem is that it can't open a program named KBot.exe(it says the program does not exist).
  For example,I wrote in db.txt following:</p>
  
  <pre><code>patch.exe
  KBot.exe
  Shutdown + tasks.exe
  </code></pre>
  
  <p>All 3 are located on the desktop,but the program opens just the first and the last one.
  And yes,the program name is correctly written.What causes it ?</p>