How can I invoke another program from within a C program?

Showing Answers 1 - 2 of 2 Answers

Capreatki

  • Jul 19th, 2005
 

Just use system() call 
like  
system(test.exe); 
the above statement when executed will executes test.exe and returns when test.exe finishes its executions./.

  Was this answer useful?  Yes

Santosh

  • Jul 20th, 2005
 

In C it is System("program_to_run.exe"); 
In Windows it can be ShellExecute(); or WinExec();

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions