How to run a program from inside another without stopping the first.

Well, I have searched but can not find anything so here goes.

I have only been learning C++ for about three days so my knowledge is slim.
I am trying to write a small program that can open other programs, and everything works except when it opens the program it stops running until whatever program it opened closes. I would like to be able to open more than one program with it at a time. Thank you in advance for any help that may be given.


else if (app == 3)

{
responce = "You have chosen Notepad++\n";
system("C:\\\"Program Files\"\\\"Notepad++\"\\notepad++.exe");
cout << responce << "\n";
goto main;
}

else if (app == 4)
Thanks man. I talked to a friend of mine today and showed him my code...he almost slapped me about the goto so I changed it, but he was not to sure about the problem I was having. I will try the CreateProcess function. Thanks again for responding.
Topic archived. No new replies allowed.