Solved

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

Posted on 2011-03-05
2
605 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

Promote certifications in your email signature

Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
pdf convertor 7 67
login windows 10 4 42
Desktop items cannot be moved / deleted 10 53
testing sql16 on win10 vs OS16 2 36
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

863 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

24 Experts available now in Live!

Get 1:1 Help Now