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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

createprocess and sending to the results to a file

Status
Not open for further replies.

DeCoDeR

Programmer
Jun 4, 2002
37
US
hi,
i am calling an executable file ( which i dont have the source ) with createprocess. i need to get the results the new process to a text file so i am using createprocess like below:
createprocess(NULL,"abc.exe > a.txt"...);
this doesnot work.
anyone has any clue?

Read between the lines
 
I think the simplest way to do that:
Code:
#include <cstdlib>
...
system("abc.exe >a.txt");
...
Apropos: no such fumction createprocess in C++ and Windows API (there is CreateProcess())...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top