Whenever an error occurs while running external programs such as .EXE files, 24x7 passes the error code to the operation system (Windows/DOS), which returns a description for this error. Accidentally, operation system identifies error #2 is "... something missing". Instead of running .EXE file you can make a .BAT file like the following: myprogram.exe if errorlevel = 2 goto ERROR exit :ERROR echo my error description here Then you can schedule this .BAT file insetad of the .EXE. You can also redirect program output to a file so that you can examine the error message later later. Example: mybatch.bat >> errro.log : I am scheduling a job(C program) that will return 2 at the errorlevel when it : finish, but in the messageBox I got the icon right showing that was a : warning : but the description of the message is something like "File does not : exist". : 1.- Is there a list of that messages and the code (errorlevel) that they are : related? : 2.- Can I include my own errorlevel message description? : thanks for your help
|