thern Posted July 8, 2006 Posted July 8, 2006 I need to know is there any chance to easily log all output of executed batch sctipts to lof files.I want to check if bach scripts executed have any errors while executing...sory for my bad english
jaws75 Posted July 8, 2006 Posted July 8, 2006 (edited) Call the batch file from another batch file like so...>>%systemdrive%\error.log yourbatchfile.batthis should work as wellyourbatchfile.bat > %systemdrive%\error.logthat will create a logfile in the root of your system drive.It will log all output not just errors.The file can have any extension like .txt ...You can also use echo to send text to the log file like>>%systemdrive%\error.log echo bla bla bla Edited July 8, 2006 by jaws75
thern Posted July 11, 2006 Author Posted July 11, 2006 thanks...i know that but i want to kno it is exist such program i can use and i found "mtee" very usefull...greetings
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now