I've got a batch file written that runs a program we've developped, passing in a number of parameters. Whilst running the program in debug mode, a large number of debug messages are output, which it would be handy to review later, although I still want to be able to see the program running "live" as it were, within the cmd.exe window.
In a *nix environment I could use Tee to output to both the text file and stdout. Any suggestions?
Best Answer
TEE for Windows
TEE enables you to redirect standard output to a file and display it on screen simultaneously.
Available as BAT, Perl and Regina scripts.
Author's note.
I use Cygwin.
There is also Tee utility for Windows updated