Solved

How do I redirect batch output to a file (But still see the output).

Posted on 2011-03-05
2
602 Views
Last Modified: 2012-05-11
I a running a batch fille.
The batch file has some output. So, I want to save the output to a file (Also error messages, also "batch questions").
BUT, I also want to see the output, so I can answer the "batch questions" and also monitor the batch progress.

Thanks zmau
0
Comment
Question by:zmau
2 Comments
 
LVL 68

Accepted Solution

by:
Qlemo earned 250 total points
ID: 35044409
You need a 3rd-party tool called tee. Any implementation will do, for example this one: http://www.softpedia.com/get/System/System-Miscellaneous/Wintee.shtml

Using that, you can do
   batchfile 2>&1 | tee LogFile.txt
Which should redirect errors and any other output to both the screen and the log file.
0
 
LVL 1

Author Closing Comment

by:zmau
ID: 35044429
Thanks
Amazing that windows does not allow this............
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now