Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Become a Leader in Data Analytics

Gain the power to turn raw data into better business decisions and outcomes in your industry. Transform your career future by earning your MS in Data Analytics. WGU’s MSDA program curriculum features IT certifications from Oracle and SAS.  

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