Add application to Windows Task Scheduler from VB6

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Faiz

    #1

    Add application to Windows Task Scheduler from VB6

    We have developed an application in VB6 (say AA.exe). We wish to
    schedule the execution of this application (AA.exe) through Windows
    Task Scheduler.

    Is there a way through which we can add this application (AA.exe) to
    Task Scheduler by using another application (say BB.exe), which is
    also developed using VB6? The operating systems can be Windows 2000,
    Windows XP or any later version of Windows...

    We also wish that whenever the second application (BB.exe) would run
    it should always check the scheduling of first application (AA.exe) in
    Task Scheduler and if it finds that someone has disabled its (AA.exe)
    execution or removed it, then it should be added to Task Scheduler
    again.

    A reference to any sample available in VB6 will be highly appreciated.

    Thanks & Regards

    Faiz
  • J French

    #2
    Re: Add application to Windows Task Scheduler from VB6

    On 30 Jan 2004 03:51:52 -0800, its_faiz@hotmai l.com (Faiz) wrote:
    [color=blue]
    >We have developed an application in VB6 (say AA.exe). We wish to
    >schedule the execution of this application (AA.exe) through Windows
    >Task Scheduler.
    >
    >Is there a way through which we can add this application (AA.exe) to
    >Task Scheduler by using another application (say BB.exe), which is
    >also developed using VB6? The operating systems can be Windows 2000,
    >Windows XP or any later version of Windows...
    >
    >We also wish that whenever the second application (BB.exe) would run
    >it should always check the scheduling of first application (AA.exe) in
    >Task Scheduler and if it finds that someone has disabled its (AA.exe)
    >execution or removed it, then it should be added to Task Scheduler
    >again.
    >
    >A reference to any sample available in VB6 will be highly appreciated.[/color]

    Have a look in your Win32 Programmer's Reference at NetScheduleJobA dd

    Also this Forum's thread looks interesting - follow it down a bit

    http://tinyurl.com/2p4kh

    HTH

    Comment

    Working...