I would like to be able to spawn from a Windows application a console application (such as ftp) and redirect the standard input and output. In particular, I would like to be able to take the standard output/error and send it to a text box on the screen instead of appearing in a DOS window. Microsoft's developer studio does this when it compiles code. How do I do this? I believe it has something to do with CreateProcess and the handles you can specify in the STARTUPINFO structure, but I don't know which handles to specify or how to link them to a text box in my windows application.