Solved

Schedular API for VB.NET

Posted on 2004-08-24
5
352 Views
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.

Regards,
Trupti
 
0
Comment
Question by:truptiph
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
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,

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

ITaskScheduler::Delete
The Delete method deletes a task

ITaskScheduler::Enum
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).
See,
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/taskschd/taskschd/task_scheduler_start_page.asp

David


0
 
LVL 3

Expert Comment

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

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
Video by: Tony
This video teaches viewers how to export a project from Adobe Premiere Pro and the various file types involved.
Viewers will learn how to use the Hootsuite Dashboard.

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now