Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

in windows server 2003. Does it assume that if it hasn't returned an error code, it must be running? or is there some kind of start code?

Thanks, P

share|improve this question

1 Answer 1

When it launches the process the scheduler receives a handle (reference) to that process which it can use to monitor it, pause, kill, etc.

When that handle is signalled it knows that the process has died for some reason and can then retrieve the final exit code.

share|improve this answer
Sorry, typo! Question should read "How does WIndows Scheduled Task detect that the scheduled application has NOT started?" – Peter Goras Jul 2 '10 at 10:22
I'm not sure exactly which method the Windows team used, but they probably check the process list for a process using the same executable. What is the exact problem you're trying to solve? – devstuff Jul 3 '10 at 12:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.