Log all input and output

Nov 8, 2022
33
0
How can I log all input and output (including error messages) into a file.

I hava a longrunner (batch script) and I wout like to "save" the whole input/output.

Thanks - Michael
 
May 20, 2008
12,099
130
Syracuse, NY, USA
You can't "log" output per se. You can however send output to a file while still seeing it in the console. Read about the TEE command.
 

Similar threads