[MFC]WinExec - Ausgabeumleitung

Hallo,

ich habe ein Problem !
Ich will mit WinExec ein Programm starten,
die Ausgabe des Programmes will ich in eine Datei umleiten. Das Programm ist Kommandozeilenorientiert. mit
WinExec(„Programmname Parameter > Ausgabedatei“, SW_SHOW) funktioniert es nicht.
Die Ausgabedatei wird einfach nicht erstellt.
Es kommt aber auch keine Fehlermeldung.
Hat einer eine Idee ???

Es ist Dringend ! ! !

Danke ! ! !

Fred