Results 1 to 3 of 3

Thread: [2005] Scheduling in .Net

  1. #1

    Thread Starter
    Fanatic Member uniquegodwin's Avatar
    Join Date
    Jul 2005
    Location
    Chennai,India
    Posts
    694

    Unhappy [2005] Scheduling in .Net

    Can someone help with scheduling...
    How do you do scheduling generally on .net?
    suppose I want my application to send emails on monday,wednesday and friday...
    or April month of every year...

    How to schedule stuff like that APART FROM USING TIMER CONTROL...

    Thanks :-)

    P.S:I dont wanna use that timer control..
    Godwin

    Help someone else with what someone helped you!

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

    Re: [2005] Scheduling in .Net

    Timers are the only way to do it within a .NET application that I'm aware of. You can leave it up to Windows and use the scheduled tasks feature. You can use the commandline shtasks.exe to create and edit Windows scheduled tasks. You can get help on the syntax from Windows Help & Support and gigemboy's CodeBank submission on redirecting commandline output would be useful.
    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
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: [2005] Scheduling in .Net

    Use a System.Timers.Timer, have it tick close to the due time and then make the interval smaller. Once it's done, do something.

    That, or use the task scheduler application in Windows.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

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