Scheduled task questions

G

Guest

How can I find out what exit codes mean ?
For example ... exit code of (1a)

With "Notify Me of Missed Tasks" checked, how are you notified ?
 
J

JTW

Exit codes are dependent upon the process running, and not global.
Therefore, if you have two different executables running, and they both
have an exit code of (say) 100, both will have different meanings and
it is up to you to determine what that specific application's exit code
means.

Insofar as "Notify Me of Missed Tasks", if configured, you are notified
on the next system restart of the missed event, only if you are an
administrator.
 
G

Guest

Thanks JTW,

Unfortunately the application in question is my own, a simple .bat file to
convert a DB from an old version to a new version. It includes several steps
and copies or delete files, but also runs other applications provided by a
CAD vendor... So I it will take some debugging to figure out where the error
is coming from... The strange thing is that running SW has not changed, so I
figured on an issue with the machine or network.

The "Notify Me..." function sucks, I was hoping for an option to send an
email or Net Send message... I guess I'll have to build some kind of check
procedure that can do this myself.
 
D

David Candy

If the error code is a win32 error (which it might be - a lot of programs will report the error they encountered)

C:\Program Files\Support Tools>net helpmsg 26 (26 is 0x1a)

The specified disk or diskette cannot be accessed.
 
P

Pegasus \(MVP\)

Debugging your own batch file is easy - just do it like this:

@echo off
echo %date% %time% Start of task > c:\test.log
echo User=%UserName%, Path=%path% >> c:\test.log

c:\Tools\Convert1.exe 1>>c:\test.log 2>c:\test.err
echo ErrorLevel of Convert1=%ErrorLevel% >> c:\test.log

c:\Tools\Convert2.exe 1>>c:\test.log 2>c:\test.err
echo ErrorLevel of Convert2=%ErrorLevel% >> c:\test.log

c:\Tools\Convert3.exe 1>>c:\test.log 2>c:\test.err
echo ErrorLevel of Convert3=%ErrorLevel% >> c:\test.log

echo %date% %time% End of task >> c:\test.log

Now examine the two log file and all will become clear.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top