I'm trying to get VB to launch a DOS based program and save the output to a text file.<P>Shell wouldn't even launch the program.<P>So I used ShellExecute, and my call looks like this-<P>ShellExecute 0 ...
You don't, ShellExecute doesn't have the functionality you want. You could use ShellExecuteEx asking for the process handle return and polling until that process terminates if you wanted.