Schedular API for VB.NET

Posted on 2004-08-24
Last Modified: 2012-08-13
Hi all,
I hv tried creating schedular kind of thing with create prcess,but i want to use actual Windows Schedular API,so that i can set the parametes for that & there will b no need 2 program for that.
Can u plz suggest.
I want 2 execute a particular exe at specified time,but want 2 set Windows schedular parameters directly for that.Windows Schedular should take care of everything.

Question by:truptiph
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

passmark earned 20 total points
ID: 11891580
The Windows API for the scheduler is the ITaskScheduler COM object. Using it isn't so easy. (Don't know if they have improved this in .NET, maybe).

The ITaskScheduler COM object has a series of methods like,

The NewWorkItem method creates a new work item, allocating space for the work item and retrieving its address

The Delete method deletes a task

The Enum method retrieves a pointer to an OLE enumerator object that enumerates the tasks in the current task folder

The microsoft MSDN document covers this is more detail and give code examples. (not sure about VB examples however).



Expert Comment

ID: 12079596
I think a partial answer was given so maybe partial points are justified?

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question