![]() |
How can "A" run a "B" program?
I have an "A" program and I want this one to run a "B", "C" and "D" program.
How? thx. |
use the system() function.
EDIT: vOid provides better detail, a minute difference in posts... has to be a record. |
If you're using Windows you can use normal command line commands
:
Edit: I was too late to post, Infinite Recursion came first :) |
Latest of many.
Quote:
|
Dawei, do you mind if I hotlink that image, or should I upload my own copy for when the time comes? ;)
*bookmarked* |
LOL, Sane, whatever you like. I stole if from the forum and performed a superb technical feat called a "crop".
|
great help guys, thx
|
Well one more issue, I want to run "B", "C", and "D" at the same time, and what system does is run "B" and then after it is done it goes and run "C".
Is there a way so I can run all three at the same time? thx |
You need to get into the issues of multiple processes. This will hinge upon your system. You will have to study some, ask your mama, or come back here with some additional information. A "How to ask questions the smart way" might short circuit your next exercise. One link can be found in the forum's FAQ/rules thread.
|
Have a look at the spawn (spawnl, spawnlp, etc) group of functions, they should do what you want.
|
| All times are GMT -5. The time now is 12:20 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC