On Nov 29, 3:53 pm, Roy Assaly <royass...@gmail.com> wrote:
> > I'll have to test this on a Vista machine, but once a scheduled task
> > starts a process, that process should complete even if the task is
> > deleted while the process is still running. So you should be able to
> > schedule the task to run a 1:02 pm and the expire the task at 1:03 pm
> > and the process that the task started should still run to completion.
> > --
> > Tom Porterfield
>
> Hi Tom,
>
> You are right, the process is completing. However, I just wish that
> the Task doesn't delete itself until the process has completed.
>
> For example, if the process takes 15 mintues, and task is set to be
> deleted in 10 minutes, the task gets deleted and the process remains
> running in the background. We now no longer have any idea if the
> process completes in 15 or hangs since no task is attached to it
> anymore.
>
> Thanks.
>
> Roy
SOLVED!
Hi Tom,
I did it anagrammatically. I checked if the LastRunResult was 0, if
it was, then it means the task was run successfully, and I simply
delete the task. I poll the computer every 5 seconds. Initially,
when a task is freshly created, the LastRunResult is 1.
Thanks for your effort. I appreciate it