CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Task starting

  1. #1
    Join Date
    Aug 2005
    Posts
    38

    Talking Task starting

    Basicly i'm just trying to make a program to start and stop programs at certain times.
    example start a email program at 8am and stop it a 5pm.

    but i carn't find any documentation on the subject.

    can anyone help me out ??

  2. #2
    Join Date
    Jul 2003
    Posts
    147

    Re: Task starting

    You could just use timers to get your start and stop events. Then use ShellExecuteEx to start programs and TerminateProcess to stop them.

    http://msdn.microsoft.com/library/de...lexecuteex.asp

    http://msdn.microsoft.com/library/de...ateprocess.asp

    Good Luck
    "Live only for tomorrow, and you will have a lot of empty yesterdays today."

  3. #3
    Join Date
    May 2005
    Posts
    4,954

    Re: Task starting

    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

  4. #4
    Join Date
    Aug 2005
    Posts
    38

    Re: Task starting

    Thanks guys for your help

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

Featured