I am trying to execute two external programs at once. Here's my code:

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";
    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!

6 Years
Discussion Span
Last Post by packetpirate

1. system("pause") is not portable... don't use it.
2. Get rid of Dev-C++... it's no longer supported or updated and needs to die.
3. If you can't figure this out or learn to use Google, then go read a book. Don't just jump ahead to the hard stuff if you haven't even gotten the basics down.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.