I'm running a bat file to do a backup. I have it set to create a log file of the process by adding this to the top of the bat file.. (which I got from an answer on this site)
@Echo off
SET LOGFILE=MyLogFile.txt
call :Logit >> %LOGFILE%
exit /b 0
Now, I'd like the bat file to visually run the same it was before. I need the end user to be able to see what it's doing and make choices at menus in the bat file. However, this code to create the log obviously re-directs all that text to the log file.
So, I get a log file that just starts with a menu asking the user to choose what to do and then nothing else.
How do I do it so I get my log file but also the on-screen output for the user?
Thanks in advance!