Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Running a program with C++

Posted on 1998-07-27
2
184 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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
Quicksort a dynamic deque 33 73
C++ assignment question 7 236
Getting IP address 8 89
Template syntax for variable length arrays 9 75
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

790 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