plq
asked on
Managing Scheduled tasks in VB
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-0 0AA0053050 3} )
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-0
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am slightly concerned about copyright etc on this. But at least the software shows me how to do it from scratch !
thanks
thanks
I believe he gives you the rihgt to use the code in applications, just not to distribute it in uncompiled form.
ASKER