Solved

Execute another program

Posted on 1998-08-31
1
196 Views
Last Modified: 2010-04-15
How do I call another application from my Turbo C program?
0
Comment
Question by:Nene19
1 Comment
 
LVL 7

Accepted Solution

by:
Motaz earned 50 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now