View previous topic :: View next topic |
Author |
Message |
jcheng
Joined: 11 Jul 2011 Posts: 3
|
Posted: Wed Jul 13, 2011 11:04 am Post subject: Scheduling Agent - Can it run multiple instances in XP? |
|
|
Hi,
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:
http://msdn.microsoft.com/en-us/library/aa383040(v=vs.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. |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2129
|
Posted: Wed Jul 13, 2011 11:29 am Post subject: |
|
|
Hello,
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. |
|
Back to top |
|
 |
jcheng
Joined: 11 Jul 2011 Posts: 3
|
Posted: Thu Jul 14, 2011 2:44 am Post subject: |
|
|
Hi,
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? |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2129
|
Posted: Thu Jul 14, 2011 6:38 am Post subject: |
|
|
Will prepare a sample code and send it to you by email. |
|
Back to top |
|
 |
|