How does Windows Task Scheduler in Win7 recognize a failed task?

Posted by lakeman on Stack Overflow See other posts from Stack Overflow or by lakeman
Published on 2009-08-26T15:25:57Z Indexed on 2010/05/09 4:08 UTC
Read the original article Hit count: 270

Filed under:
|

Hello,

I am working with Windows 7 and I have an application that returns zero (0x0) when successful and one (0x1) on error situations.

I have scheduled this app using Windows Task Scheduler. I have checked the option boxes "If the task fails, restart every" and "Attempt to restart up to:".

I thought that a non-zero return code from the app would be enough to trigger the task to be restarted after the given interval. But nothing happens.

Any ideas what could be the issue? I tried to google it but did not found anything relevant.

© Stack Overflow or respective owner

Related posts about windows-7

Related posts about task-scheduler