Solved

Running a program with C++

Posted on 1998-07-27
2
181 Views
Last Modified: 2010-04-02
I am using the oldest version of Boreland C++.  I was wondering if anybody knows if you can run an *.exe program from within a program in C++.
0
Comment
Question by:LastChoice
2 Comments
 
LVL 1

Accepted Solution

by:
PC-Alex earned 50 total points
ID: 1168735
Try the command

shell("DRIVE:\PATH\Program.exe");

The 'e' in Borland was intended ... ?
0
 
LVL 11

Expert Comment

by:alexo
ID: 1168736
* The spawn functions (spawnl, spawnv, etc).
* The exec functions (execl, execv, etc).
* The system function.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

943 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

7 Experts available now in Live!

Get 1:1 Help Now