SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Scheduling Agent - Can it run multiple instances in XP?

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> VCL Scheduling Agent
View previous topic :: View next topic  
Author Message
jcheng



Joined: 11 Jul 2011
Posts: 3

PostPosted: Wed Jul 13, 2011 11:04 am    Post subject: Scheduling Agent - Can it run multiple instances in XP? Reply with quote

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
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Wed Jul 13, 2011 11:29 am    Post subject: Reply with quote

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
View user's profile Send private message
jcheng



Joined: 11 Jul 2011
Posts: 3

PostPosted: Thu Jul 14, 2011 2:44 am    Post subject: Reply with quote

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
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Thu Jul 14, 2011 6:38 am    Post subject: Reply with quote

Will prepare a sample code and send it to you by email.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> VCL Scheduling Agent All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group