Page 1 of 1

Scheduling Agent - Can it run multiple instances in XP?

Posted: Wed Jul 13, 2011 11:04 am
by jcheng
I hope to ask about the Scheduling Agent for Delphi, when used on XP (i.e Task Scheduler 1.0).
For example, I set a daily schedule to open notepad.exe, and keep the
notepad open. What do I need to set to the TTrigger so that, on each day
afterwards, a new notepad.exe will be opened?
I suppose this is related: ... s.85).aspx
what I want is the effect of "Parallel".
But I can't seem to find anything similar in TTrigger.

In fact I sent you guys an email, but got no response about how to goes multiple instances if under Task Scheduler 1.0

Thanks in advance.

Posted: Wed Jul 13, 2011 11:29 am
by isiticov

I can't see why you're not able to run multiple instances of notepad on XP. We've tested this and it just runs as many instances as we run it.

Posted: Thu Jul 14, 2011 2:44 am
by jcheng
When I test it, a new notepad.exe won't open unless I close the previous one.
I am talking about multiple run from the same job.

Let's say, on July 10 8am, I set a schedule of daily 9am to run notepad.exe.
By July 12 10am, I expect to see 3 notepad.exe, but actually there is only 1 notepad.exe open.
If I close that opened notepad.exe at 8:55am and wait, then a new one will open at around 9am.

So my impression is that as long as the process started by the scheduler is still running, it can't run a new instance.

If you can get it to run mutiple instances, then can you send me a sample source code?

Posted: Thu Jul 14, 2011 6:38 am
by isiticov
Will prepare a sample code and send it to you by email.