Link to home
Start Free TrialLog in
Avatar of plq
plqFlag for United Kingdom of Great Britain and Northern Ireland

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-00AA00530503} )



ASKER CERTIFIED SOLUTION
Avatar of David Lee
David Lee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of plq

ASKER

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

Avatar of plq

ASKER

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

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