Results 1 to 6 of 6

Thread: A program that runs all the time

  1. #1

    Thread Starter
    Hyperactive Member r0k3t's Avatar
    Join Date
    Dec 2005
    Location
    Cleveland
    Posts
    361

    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!
    Anti DUPLO machine!!!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member r0k3t's Avatar
    Join Date
    Dec 2005
    Location
    Cleveland
    Posts
    361

    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
    Anti DUPLO machine!!!

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: A program that runs all the time

    Quote Originally Posted by r0k3t View Post
    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    Addicted Member skea's Avatar
    Join Date
    Mar 2006
    Posts
    187

    Re: A program that runs all the time

    Have you seen this by VBDT?
    Using:VS 2008 Team System :: SQL Server 2005 Standard Edition.
    ----------------------------------------------------------------

  6. #6

    Thread Starter
    Hyperactive Member r0k3t's Avatar
    Join Date
    Dec 2005
    Location
    Cleveland
    Posts
    361

    Re: A program that runs all the time

    No but that looks promising... Thanks. I will look into it more.
    Anti DUPLO machine!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width