Jump to content

Recommended Posts

Posted

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 :rolleyes:


Posted (edited)

Call the batch file from another batch file like so...

>>%systemdrive%\error.log yourbatchfile.bat

this should work as well

yourbatchfile.bat > %systemdrive%\error.log

that 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 by jaws75
Posted

thanks...

i know that but i want to kno it is exist such program i can use and i found "mtee" very usefull...

greetings :)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...