#67784 - 2002-07-03 08:43 PM
Re: Wanted - Object task scheduler functions
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
hmmm, theres a COM interface for Task Scheduler, but looks as if one has to jump through a bunch of hoops to get at it (or should I say - get it) ...
http://www.15seconds.com/Issue/980513.htm
-Shawn
|
|
Top
|
|
|
|
#67785 - 2002-07-03 08:44 PM
Re: Wanted - Object task scheduler functions
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
The interesting thing about jt.exe is that you can do everything on a single commandline. You can create a job with the correct settings, add it to a computer, execute the job, and delete the job all in one line. I can spend some time on this if you'd like Mark.
Brian
|
|
Top
|
|
|
|
#67787 - 2002-07-03 08:54 PM
Re: Wanted - Object task scheduler functions
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
I think the object is usable.. I'll work out some sample code for you.
Brian
|
|
Top
|
|
|
|
#67789 - 2002-07-03 09:18 PM
Re: Wanted - Object task scheduler functions
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
Mark
Might want to try just the CreateObject by itself:
$Sched = CreateObject("Scheduler.ShedulingAgent.1")
But I would suggest a manual search in the root of HKEY_CLASSES_ROOT for the value "Scheduler.ShedulingAgent.1" - just to make sure its installed (just checked my XP machine - not there)
According to the web site there - the COMable DLL (TaskScheduler.dll) ships with Site Server ![[Frown]](images/icons/frown.gif) [ 03 July 2002, 21:20: Message edited by: Shawn ]
|
|
Top
|
|
|
|
#67790 - 2002-07-03 09:20 PM
Re: Wanted - Object task scheduler functions
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
I'm fiddling with it... apparently we need the server (asp) object functional.. still working on that.
Brian
|
|
Top
|
|
|
|
#67791 - 2002-07-03 09:52 PM
Re: Wanted - Object task scheduler functions
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
So far no luck on the COM methods... still messing with it, though.
Brian
|
|
Top
|
|
|
|
#67793 - 2002-07-03 10:31 PM
Re: Wanted - Object task scheduler functions
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
Phooey.. trying to find info on how to do this in COM seems tougher than manipulating JT.exe!
Brian
|
|
Top
|
|
|
|
#67795 - 2002-07-03 10:50 PM
Re: Wanted - Object task scheduler functions
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
|
|
Top
|
|
|
|
#67796 - 2002-07-03 11:17 PM
Re: Wanted - Object task scheduler functions
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
Actually.. I have seen two different ActiveX wrappers for the task scheduler functions (in addition to the freeware one listed above):
1. http://www.etasoft.com/
2. http://www.altecdata.com/task_scheduler.htm
I wonder how hard it would be to write one of these..
Brian [ 03 July 2002, 23:20: Message edited by: BrianTX ]
|
|
Top
|
|
|
|
#67799 - 2002-07-03 11:48 PM
Re: Wanted - Object task scheduler functions
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
Now all I need is GCC to compile some C++ code.. (since I don't have visual C++) I noticed there is a lot of sample code on the MSDN site.
Brian
|
|
Top
|
|
|
|
#67800 - 2002-07-03 11:51 PM
Re: Wanted - Object task scheduler functions
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Here is some more with this..
Ref - http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=32831&lngWId=1 quote:
Allows you to use the windows task scheduler service to schedule task to run on the system. This code was written in Japanese by another company and I re-wrote it in English. It took me a while to find this one so I hope you all appreciate the research time that has been put into doing this. Hope it's off use to some of you out there. If you want to vote for this code please do so.
Kent
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 1198 anonymous users online.
|
|
|