Solved

Schedular API for VB.NET

Posted on 2004-08-24
5
356 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adobe Acrobat DC Pro Create to PDF from web page function is now working correctly 9 67
Need to Edit a PDF 9 122
Microsoft  Partnership 1 68
Determining Project Cost 1 62
Let’s list some of the technologies that enable smooth teleworking. 
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
The viewer will learn common shortcuts with easy ways to remember them. The viewer will then learn where to find all of the keyboard shortcuts, how to create/change them, and how to speed up their workflow.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

910 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

22 Experts available now in Live!

Get 1:1 Help Now