Results 1 to 3 of 3

Thread: Windows Task Scheduler

  1. #1

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Windows Task Scheduler

    I'm using the Windows Task Scheduler (WTS) to start an application that reminds me every day at 9 h in the morning to do some routine task -that I tend to forget about- by displaying a message in a form.

    In this form there is a checkbox "Remind me every 15 minutes", but I just don't know how to implement it: should I leave the application in memory with the form invisible and use a timer to make it visible every 15 minutes (doesn't look elegant to me) or is there a way of doing it by manipulating the WTS before closing the application? Of course I can program the WTS to run the job every 15 m. but how do I enable/disable it from the application?

    Btw I'm using WinXP Professional.
    Last edited by krtxmrtz; Apr 22nd, 2009 at 05:33 AM.
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Windows Task Scheduler

    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: Windows Task Scheduler

    Quote Originally Posted by westconn1 View Post
    Thanks. In the meantime I've also found this...
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

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