A program that runs all the time
Hi there,
I am looking to create a program that runs all the time and wakes up every 15 minutes or so and runs a task. The task is simple, check a table and send out emails to the appropriate people.
I am looking for some feedback on how this is done. I have never had to do something like this, if it was just something that needed to run every night I would simply use windows task scheduler but it needs to run more frequently than that so I am not sure what the best way to approach it is.
Anyone have any experience with this? What are your thoughts?
Thanks!
Re: A program that runs all the time
One option would be to create a Windows Service and use a Timer with its Interval set to 15 minutes and its AutoReset set to True, then handle the Elapsed event.
Re: A program that runs all the time
I saw that... It is frustrating cause I have Visual Studio Standard (MAPS) and you need visual studio professional edition.
You can do it by hand but that is a little time consuming.
Thanks
Re: A program that runs all the time
Quote:
Originally Posted by
r0k3t
I saw that... It is frustrating cause I have Visual Studio Standard (MAPS) and you need visual studio professional edition.
You can do it by hand but that is a little time consuming.
Thanks
I've never used VS Standard but I have used VB Express and basically all that's missing is the project template. I'm not sure whether all versions support it but, with VS Pro at least, you can create a project and configure it as desired, then export it as a template. For VB Express 2005 I found such a template on the web. I'd guess that you could find a similar template for 2008, or get someone you know who has VS Pro to create one for you.
Re: A program that runs all the time
Have you seen this by VBDT?
Re: A program that runs all the time
No but that looks promising... Thanks. I will look into it more.