Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to run an external application

Posted on 1998-08-12
2
Medium Priority
?
201 Views
Last Modified: 2010-04-02
I would like to run an external application, and or give a commmand from within my MS Visual c++ program.

At the moment the command I'd like to issue is "IPCONFIG > stat.dat"
0
Comment
Question by:kraphics
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 100 total points
ID: 1170040
You can use the system() function from the C runtime library:

system("IPCONFIG >STAT.DAT");

0
 
LVL 22

Expert Comment

by:nietod
ID: 1170041
I think there are more ways to run programs than there are programs to run   : - )

You also might want to consider CreateProcess() or the exec() class of functions  (there are about 10 of them).  Each way has its own merits.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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. …
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
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.
Suggested Courses

810 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