Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to run multiple executables

Status
Not open for further replies.

schwankieog

Programmer
Jul 25, 2001
43
US
For a class I am taking I use the system() command to run my command line but I was wondering if there is a way to run multiple command lines at the same time, or in this case two other executable doing two different things without waiting for the first to finish.
 
hi

there's a function called spawn() that allows u to run other executables. it has a lot of variations, parameters, which let u specify how the control should flow, example, whether the control comes back to ur program immediately after running it, or wait for the other program to finish etc. check out c++ help for details and sample code.

luv
Karthik.
LOL A ship is safe in the harbour, but that's not what it is meant for!!! LOL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top