Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

Execute another program

How do I call another application from my Turbo C program?
0
Nene19
Asked:
Nene19
1 Solution
 
MotazCommented:
You can use system command to do this :

#include <stdlib.h>

void main(){
  system("c:\dos\edit.com");
}

If it didn't work try to run this program out of C enveronment, run your exe file, for example if this C program named ( prog1.c ) run in the Dos prompt prog1.exe because C environment occupy mush memory, so that the external programs you wish to run can not find the enought memory to be run.

Regards, Motaz from Sudan.
motaz1@yahoo.com
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now