Basically what I want to do is run a series of commands in my batch file, and display stdout to screen as well as saving it in a file. So to set the context..
::To output to helloworld.txt
Echo hello world! > helloworld.txt
::To output to console
Echo hello world! > CON
What I’d like to do is have the output of a single command directed to both. As a workaround I’ve got something which will output to a file, and then copy the contents of the file to console.
::Output to file then copy file contents to console
echo Hello World! >test.txt
copy test.txt con > nul
This isn’t ideal since I’d like for the user to see the activity in the console as the batch file is executing commands, rather than in a big batch at the end.