views:

413

answers:

1

Hello, could any one tell me how to create schedule task for windows in vb.net,and how to attach a dll with schedule task.and can we make differnet dll for different function.Could you give me a link or code.

Actully i ahve one windows application which is performing 5 task at a time which are controlled by tick event on a timer .

But now i want to create schedule task for every task.so could you tell me how can i do that.Please give some breif details.

Thanks Pankaj Pareek.

A: 

This MSDN article describes the steps required for creating a Windows Service: http://msdn.microsoft.com/en-us/library/9k985bc9(VS.80).aspx

The gist of scheduling with a service is to start a timer when the service starts and fire off the actual work of the service when the timer's Tick event is raised.

You can create a separate service for each function, or create a series of timers within one service, each of which does a different task when the appropriate amount of time has elapsed.

If you truly need each of these functions to be in a separate module, you can use MEF or I've done this with the System.Addin pipeline builder, but this is probably more trouble than it is worth -- too much of a learning curve for a simple problem domain.

Jay