MS DOS Batch File Log

Posted on Wednesday, January 20, 2010 in MS OS

Log example (overwrite log file):
c:\example.bat > c:\log.txt

Log example (append log file):
c:\example.bat >> c:\log.txt

Remove @ECHO off for full output

Include errors in log:
c:\example.bat > c:\log.txt 2>&1