Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running DOS commands

Status
Not open for further replies.

tg2003

IS-IT--Management
Feb 6, 2003
270
IL
Hello,
I'm a VB programmer, and I have thoughts about using CPP as Back-end of my application (the front-end is VB 6).

I would like to know the following:
1. What is considered the best way for running dos commands from CPP application? my back-end will run dos commands, put its output in files and then manipulates its text.
2. What kind of application should I create by using Visual Studio 6 ? Console application?

Thanks in advance!
 
Thanks.
I may ask another question: If I run a DOS command that returns output, how can I catch it without of sendind the output to a temporary file?
 
See MSDN, _pipe() function. Example 2 in the article (too long;) is exactly the answer...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top