#26687 - 2002-08-08 10:05 AM
scheduler
|
marc
Fresh Scripter
Registered: 2002-07-23
Posts: 10
|
I want to execute a kixtart script every 15 minutes. Does anyone knows which function i can use?
|
|
Top
|
|
|
|
#26689 - 2002-08-08 10:15 AM
Re: scheduler
|
marc
Fresh Scripter
Registered: 2002-07-23
Posts: 10
|
Windows2000
|
|
Top
|
|
|
|
#26691 - 2002-08-08 10:28 AM
Re: scheduler
|
marc
Fresh Scripter
Registered: 2002-07-23
Posts: 10
|
the problem with the at command is that you can apparently schedule command only by date:
For example: To back up the hard drive of the Marketing server to a tape drive at midnight every five days, create a batch program (Archive.cmd) containing the backup commands. Then schedule the batch program to run by typing:
at \\marketing 00:00 /every:5,10,15,20,25,30 archive
I don't know how to schedule command every 15 minutes
|
|
Top
|
|
|
|
#26697 - 2002-08-08 11:23 PM
Re: scheduler
|
kholm
Korg Regular
   
Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
|
Jens,
Nice to know. Maybe you should add this as a comment to your ScheduleTask() UDF
I found my own kludgy way. Maybe i should have posted my problems to the board/You
-Erik
|
|
Top
|
|
|
|
#26698 - 2002-08-09 07:33 AM
Re: scheduler
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Erik,
You are right and you are wrong..
Let me explain..
Back in the days of IE4, you had the options to install Task Scheduler and Active Desktop, but if you did not install these at the time of IE4 and you did upgrades to IE5/6 you would be missing them.
I did do some hacking about two years ago and figured out how to install the Task Scheduler from the IE installation without having to reinstall -
You need the following files: quote:
mstask.chm mstask.dll mstask.exe mstask.hlp mstask.inf mstask.ini mstinit.exe schedule.reg
schedule.reg is:
code:
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Schedule] "Type"=dword:00000120 "Start"=dword:00000002 "ErrorControl"=dword:00000001 "ImagePath"=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,\ 32,5c,4d,53,54,61,73,6b,2e,65,78,65,00 "ObjectName"="LocalSystem" "DisplayName"="Task Scheduler" "DependOnService"=hex(7):52,70,63,53,73,00,00 "DependOnGroup"=hex(7):00 "Group"="" "NextAtJobId"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Schedule\Enum] "0"="Root\\LEGACY_SCHEDULE\\0000" "Count"=dword:00000001 "NextInstance"=dword:00000001
To implement this, you need to do the following: quote:
Task Scheduler Installation process..
Right-Click on the MSTASK.INF file. Choose Install.
Double-Click on the SCHEDULE.REG and merge with the Registry.
Reboot the system.
We have done this process with a number of servers with great success.
DISCLAIMER: You will need to get these files from the appropriate installation of IE.
Was not able to duplicate this process for the Active Desktop.
HTH,
Kent
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 342 anonymous users online.
|
|
|