Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.os.msdos.programmer FAQ part 3/5
Section - - How can I redirect the output of a batch file?

( Part1 - Part2 - Part3 - Part4 - Part5 - Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Restaurant inspections ]


Top Document: comp.os.msdos.programmer FAQ part 3/5
Previous Document: - How can I redirect printer output to a file?
Next Document: - How can I redirect stderr?
See reader questions & answers on this topic! - Help others by sharing your knowledge

 Assuming the batch file is called batch.bat, to send its output (stdout)
 to another file, just invoke COMMAND.COM as a secondary command
 processor:

 command /c batch parameters_if_any >outfile

 Timo Salmi's notes on this and other batch tricks are downloadable from:
 <ftp://garbo.uwasa.fi/pc/link/>

 A reader of comp.os.msdos.programmer has created a utility that can
 capture batch file output. It can be found at:
 <http://www.simtel.net/pub/dl/11141.shtml>

User Contributions:

1
Ben in Seattle
Jun 2, 2026 @ 4:16 pm
Another solution is to use a parallel port loopback plug. It makes the PC think there is a printer attached. The benefit of this is it doesn't require anticipating the problem with ANSI.SYS escape sequences nor does it make you wait half an hour for the "Abort, Retry, Ignore?" prompt, as some versions of DOS do.

Comment about this article, ask questions, or add new information about this topic:




Top Document: comp.os.msdos.programmer FAQ part 3/5
Previous Document: - How can I redirect printer output to a file?
Next Document: - How can I redirect stderr?

Part1 - Part2 - Part3 - Part4 - Part5 - Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
jeffrey@carlyle.org (Jeffrey Carlyle)





Last Update March 27 2014 @ 02:11 PM