Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
johnbil
- Posts: 11
- Joined: 06 Jul 2013 09:01
#1
Post
by johnbil » 29 Jun 2015 09:11
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
-
foxidrive
- Expert
- Posts: 6031
- Joined: 10 Feb 2012 02:20
#2
Post
by foxidrive » 29 Jun 2015 09:51
The purpose of a tee filter is to redirect screen output to a file, as well as show it on the screen.
-
johnbil
- Posts: 11
- Joined: 06 Jul 2013 09:01
#4
Post
by johnbil » 29 Jun 2015 20:35
Thanks for the info guys. I was able to do it.
