Page 1 of 1

Batch File Log

Posted: 29 Jun 2015 09:11
by johnbil
I run a back up routine by way of a batch file. I would like to simultaneously create a log file of the batch's actions. I have tried a command, "mybat.bat >> c:\log.txt", that I found on this forum. It works great in creating the log, but I can not view the batch's actions while it is running. I have played around with the Echo On/Off commands, but no luck.

Does anyone know how I can run my batch file with all its actions being visible while creating a log file in the background? :?

Regards...John

Re: Batch File Log

Posted: 29 Jun 2015 09:51
by foxidrive
The purpose of a tee filter is to redirect screen output to a file, as well as show it on the screen.

Re: Batch File Log

Posted: 29 Jun 2015 10:51
by Squashman

Re: Batch File Log

Posted: 29 Jun 2015 20:35
by johnbil
Thanks for the info guys. I was able to do it. :D