Have a look at this page: http://support.microsoft.com/kb/190351[^] Possibly not exactly what you are looking for but it gets you started on Input/Output handles and redirection. Also, search for "redirection" in the following article section: http://www.codeproject.com/KB/threads/[^]