1.

Solve : Output Echoed Text to File??

Answer»

Is it possible to output the echoed text (and any error MESSAGES) to a FILE?  I have a batch file that runs a java PROGRAM on multiple, and this batch file takes several hours to execute.  Some of my filenames are incorrect, and I get an error message (along the lines of 'Cannot find file').  Unfortunately, because I am RUNNING so many files, I can't tell which file that message is referring to (most of them work, it's just a few of them that do not work).

Is there any way to output the messages to a file, so I can look at it once the batch is finished?To redirect the output of a batch, do this

>logfile CMD /c mybatch

This creates a new instance of the shell and runs the specified command, all of the output of this is echoed to logfile

GrahamGot it.  Thanks!



Discussion

No Comment Found