I have an exe file which I run from my code, I was wondering whether it is possible to capture the output from that exe file (everything it displays in the dos box) and store in a variable, then write it to a file. has anyone got any ideas I just need everything this exe file prints to the screen to go into a file.