>Bill,
>
>I just came across this, and it indeed works like a charm
>
>? ShellExecute( hDCScreen, "open", "command.com", "/c dir c:\*.* >>test.txt", "c:\", 1 )
>
>You have to use >> instead of just one
>
>>Is it possible to use ShellExecute() to execute a DOS program AND redirect the DOS program's output to a file. I have not been able to get this to work with ShellExecute() by placing the redirection operator and file name in the Parameters variable. However, I have been able to get this to work with WinExec(), but not ShellExecute().
Thanks, David. I'll take a look at that.
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.