TIP: Click on subject to list as thread! ANSI
echo: windows
to: ED VANCE
from: WILFRED VAN VELZEN
date: 2020-07-08 11:10:00
subject: Re: Batch File Help

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)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.