Hello,
I am trying to execute two external programs at once. Here's my code:
#include<iostream>
using namespace std;
int main() {
system("cd \\ && cd Program Files\\Skype\\Phone && Skype.exe");
cout<<"Skype launched \n";
system("cd \\ && cd Program Files\\MAXA Notifier for Skype && SkypeNotifier.exe ");
cout<<"MAXA launched \n";
system("pause");
return 0;
}
I have very poor, basic knowledge about programming i got in high school. What I am trying to accomplish might not even be possible with my method so please provide me with detailed comments so that I can understand and learn.
What is happening is that the code works but after the first program is executed it pauses until the process is somehow terminated. Same happens when the second program is executed. Why? What I want is both to run together.
Using Dev C++, Windows XP.
Thanks for your attention in advance!