[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
    Search the FAQ Archives

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

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?


- How can I redirect the output of a batch file?



 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/tsbat.zip>

 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>



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 October 22 2009 @ 05:28 AM

Some parts © 2009 Advameg, Inc.