SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
ERRORLEVEL and ERRORMESSAGES

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
ERRORLEVEL and ERRORMESSAGES
Author Message
Fidel Davila Villagomez



Joined: 26 Jan 2000
Posts: 1

Post ERRORLEVEL and ERRORMESSAGES Reply with quote

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

Wed Jan 26, 2000 2:24 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6485

Post Re: ERRORLEVEL and ERRORMESSAGES Reply with quote

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

Wed Jan 26, 2000 2:43 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.