Batch File Log

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
johnbil
Posts: 11
Joined: 06 Jul 2013 09:01

Batch File Log

#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

Re: Batch File Log

#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.

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Batch File Log

#3 Post by Squashman » 29 Jun 2015 10:51


johnbil
Posts: 11
Joined: 06 Jul 2013 09:01

Re: Batch File Log

#4 Post by johnbil » 29 Jun 2015 20:35

Thanks for the info guys. I was able to do it. :D

Post Reply