thern Posted July 8, 2006 Share 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 Link to comment Share on other sites More sharing options...
jaws75 Posted July 8, 2006 Share 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 Link to comment Share on other sites More sharing options...
thern Posted July 11, 2006 Author Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now