Solved

Execute another program

Posted on 1998-08-31
1
202 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
ID: 1252441
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How do I validate a simple fgets() statement in C programming? 15 144
libcurl - taking long time on curl_easy_perform 11 432
Problem to save 10 174
Computer slow / BSOD 10 64
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…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

809 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