For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > May 2004 > Re: Task Scheduler, make new task run every 15 min's 24 hr's a day every day, possibl









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Task Scheduler, make new task run every 15 min's 24 hr's a day every day, possibl
B0nj

2004-05-29, 9:30 am

You'll need to create 96 scheduled tasks, each running at a different
interval.
Or use a custom scheduling program, but it will have to be a service to run
when no user is logged on (like the task scheduler does), and use trickery
to do 'run as'.

"mscir" <mscir@fake.zzz> wrote in message
news:10bg3phf5s1m93f@corp.supernews.com...
> I am using Edanmo's dll to schedule a new task. I can create a new task
> that runs ever day, but I want to make it run every 15 minutes, 24 hours
> a day, every day. (VB6 for XP and 2k). I haven't been able to figure out
> how to use his properties in the right way to do this. Any suggestions?
>
> ----------------------
> This is Edanmo's site:
> http://www.mvps.org/emorcillo/vb6/grl/index.shtml
> Using the Task Scheduler from VB
> Add, modify and delete tasks from the Task Scheduler.
> Download: schedule.zip (52Kb)
> Last Update: 01/16/2004
> ----------------------
>
> Thanks,
> Mike
>



tlviewer

2004-05-29, 1:30 pm


"mscir" <mscir@fake.zzz> wrote in message =
news:10bg3phf5s1m93f@corp.supernews.com...
> I am using Edanmo's dll to schedule a new task. I can create a new =

task=20
> that runs ever day, but I want to make it run every 15 minutes, 24 =

hours=20
> a day, every day. (VB6 for XP and 2k). I haven't been able to figure =

out=20
> how to use his properties in the right way to do this. Any =

suggestions?
>=20
> ----------------------
> This is Edanmo's site:
> http://www.mvps.org/emorcillo/vb6/grl/index.shtml
> Using the Task Scheduler from VB
> Add, modify and delete tasks from the Task Scheduler.
> Download: schedule.zip (52Kb)
> Last Update: 01/16/2004
> ----------------------
>=20
> Thanks,
> Mike
>=20


Look at the Trigger object for your JOB.
Set the Duration=3D 1426 ' (minutes in a day, less 14)
Interval=3D 15

The easiest way for you to have figured this out
for yourself was to set it up in the Mstask GUI first,
then enumerate through all the properties.

BTW, these settings (DAILY, repeating every few minutes)
is for me the most common type of JOB. Once you learn how
to do one, you can easily come up with other varieties.

hth,
Mark
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com