Job Scheduling from VB

  • Thread starter Thread starter sundar
  • Start date Start date
S

sundar

Hi,

In one of our projects we are currently using windows Task Scheduler
to run periodic jobs. I also noticed that applications like Norton
Antivirus schedules jobs that do not appear in Task Scheduler. In much
the same way, we dont want our jobs too to be visible in windows Task
Scheduler.

Any idea would be very helpful.

Thank you,

SundarMoorthy Pandranki
Project Manager,
CIStems software Ltd.
India.
 
(e-mail address removed) (sundar) scripsit:
In one of our projects we are currently using windows Task Scheduler
to run periodic jobs. I also noticed that applications like Norton
Antivirus schedules jobs that do not appear in Task Scheduler. In much
the same way, we dont want our jobs too to be visible in windows Task
Scheduler.

You may want to write a Windows Service that manages your "jobs".
 
Hi,

In one of our projects we are currently using windows Task Scheduler
to run periodic jobs. I also noticed that applications like Norton
Antivirus schedules jobs that do not appear in Task Scheduler. In much
the same way, we dont want our jobs too to be visible in windows Task
Scheduler.

Any idea would be very helpful.

Thank you,

SundarMoorthy Pandranki
Project Manager,
CIStems software Ltd.
India.

I'm not sure how your creating the tasks, but if your doing it using the
programatically using the task scheduler interfaces, then you'll want to
look at the IScheduledWorkItem::SetFlags method. One of the flags that
you can set is TASK_FLAG_HIDDEN. This will cause the task not to be
visible in the task scheduler interface.

Tom Shelton
 
Right. I havent done before a windows service from VB so that i can
schedule jobs. Trying to do it now.Meanwhile,could i find any sample
code or any help on how to go about it..

Thank you

Sundar
 
Thank you for the reply.

Currently we are scheduling jobs programatically from a VB dll called
by an ASP page. These jobs always required providing administrative
username to run successfully(execute a standard VB exe) and what this
meant was ending up asking the User ,at the time of application
installation, to provide a administrative user account which is used
subsequently for programmatic scheduling of jobs. I do not want to
trouble the users with asking for such account information at any
point of time.

I would like understand if creating a windows service(or any other
ways) could answer the above situation ie, run jobs without admin
priviliges.

Sundar
 
Back
Top