Using ShellExecute() to open file and pipe output to file
Posted on 2004-10-07
If how can I pipe the output of a dos .exe file to another file.
If I start the program with C:\runme.exe paramerteer >> output.txt the output will not be shown on the screen but written to output.txt
If i use:
ShellExecute(NULL, "open", "c:\\runme.exe", "parameter >> output.txt", NULL, SW_SHOWNORMAL);
runme.exe start up but dont write output to output.txt.