Hi Ed,
On 2020-07-07 23:03:00, you wrote to All:
I know how to Redirect the output of a .BAT File to Save it to the HDD using >> .
When I do that I can't see the output of the .BAT File on the screen.
I'm trying to figure out how to write some line(s?) in my .BAT File
that will make the computer SHOW the Output and SAVE the Output to a
File on the HDD at the SAME TIME.
You need the "tee" command. On linux it's a standard command, probably not on windows, but I have it in my "library", so it does exist ;).
It writes the data it receives on standard-in to standard-out, _and_ writes it to a file. So does exactly what you want.
For example:
echo "Hi!" | tee.exe -a example.log
Will write "Hi!" to the screen and append it to example.log...
Bye, Wilfred.
--- FMail-lnx64 2.1.0.18-B20170815
* Origin: FMail development HQ (2:280/464)