Friday, 15 March 2013

logging - CMD all output to one log file -


So,

I have a single bit file with some commands, which I want to output I have a single log.txt file

There is no way to tell CMD (at the beginning of a bat file), all this warning / error / everything should be produced in a log.txt and Should not consoles? Or do I need to individually add "dir> log.txt 2> and 1" to each command?

Tnx

you

  @echo You can try to change off batch commands ....  

in

  @echo off call: doCommands% * & gt; File.txt 2 & gt; And 1 exit / b: doCommands batch command .....  

No comments:

Post a Comment