CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17

Thread: Scheduled Services..

  1. #16
    Join Date
    Feb 2008

    Question Re: Scheduled Services..

    Quote Originally Posted by Arjay
    No, but I can get you started. Run "Start\Control Panel\Schedule Tasks\Add Scheduled Task". You should be able to figure it out from there.

    Search Google for "Programmatically Task Scheduler".

    Yeah I know how to add a scheduled task!

    However I didnt find any Windows API or BCL method which can do it programmatically (on google)..
    I can run the scheduled task, its just another application but I didnt find anything which can add a task to a scheduler or may be programmatically add interval parameters which would start it after certain interval..
    Infact this was my initial approach..
    But when I didnt find anything, I moved to the scheduled Services approach..

    I'd appreciate if you could help me over adding the task to scheduler and passing interval parameters too..

  2. #17
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004

    Re: Scheduled Services..

    Look through the links again in the google search: "Programmatically Task Scheduler".

    Maybe try looking at the one that says "Using The Windows Task Scheduler" with the subheading of "Detailed information can be found in the Microsoft Developer Network (MSDN) documentation on how to programmatically control the Task Scheduler."

Page 2 of 2 FirstFirst 12

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)