• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 369
  • Last Modified:

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



0
plq
Asked:
plq
  • 2
  • 2
1 Solution
 
David LeeCommented:
Hi plq,

It's possible using this: http://www.mvps.org/emorcillo/en/code/shell/tasksched.shtml

Cheers!
0
 
plqAuthor Commented:
Thanks for this., I spent a fair amount of time last week trying to find this code.

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

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

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now