Subj : Re: Batch File Help
To   : Ed Vance
From : Wilfred van Velzen
Date : Wed Jul 08 2020 11:12 am

Hi Ed,

On 2020-07-07 23:03:00, you wrote to All:

EV> I know how to Redirect the output of a .BAT File to Save it to the HDD
EV> using  >>  .

EV> When I do that I can't see the output of the .BAT File on the screen.

EV> I'm trying to figure out how to write some line(s?) in my .BAT File
EV> that will make the computer SHOW the Output and SAVE the Output to a
EV> 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)