How to capture output lines from command prompt...

Hi!

Hope somebody can help me, I'm writing a kind of GUI for WinNT, using
older command prompt based programs, and my question is; how can I trap
outgoing messages from the old proggie, to show them in the GUI??
This would be much appreciated!

/Sebastian