Managing Scheduled tasks in VB

Posted on 2006-05-05
Last Modified: 2013-12-03
I'm looking for a way to list, add, edit and delete scheduled tasks from VB6

Most of the links to samples on this forum seem to be dead now. I've got hold of one scheduled tasks program from codecomments but its only capable of listing tasks under the SYSTEM account. I will need to list and manage tasks from a number of accounts. Thats using the netapi32.dll functions like NetScheduleJobEnum.

The WMI class Win32_ScheduledJob is also only capable of listing tasks under the SYSTEM account.

I've seen a couple of comments in C++ about an ole GUID in mstask.dll that you can link into - I'd like to know if thats possible from VB (using CLSID_CTaskScheduler GUID {148BD52A-A2AB-11CE-B11F-00AA00530503} )

Question by:plq
    LVL 76

    Accepted Solution

    Hi plq,

    It's possible using this:

    LVL 8

    Author Comment

    Thanks for this., I spent a fair amount of time last week trying to find this code.

    LVL 8

    Author Comment

    I am slightly concerned about copyright etc on this. But at least the software shows me how to do it from scratch !

    LVL 76

    Expert Comment

    by:David Lee
    I believe he gives you the rihgt to use the code in applications, just not to distribute it in uncompiled form.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
    This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now