Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Update of Item in Windows Task Scheduler
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00639625
Message ID:
00639897
Views:
15
Bret,
The following works for me (VFP7, Win2K):
oSch=CreateObject("Scheduler.SchAgent")
oSch.refresh
osch.Job("Task1").Flags= 4  && tfDisabled
osch.Job("Task1").save
HTH
>>Bret,
>>
>>Check out the following link:
>>
>>http://home.sprintmail.com/~mpryor/c-frame.htm?tskfaq.htm
>>
>>HTH
>>>I was wondering if anyone knew how to enable or disable a scheduled task in the MS Task Scheduler from within VFP.
>>>
>>>I am downloading data from another base and wish to enable a task if the data was downloaded OK. If there was download problems I wish to disable the task.
>>>
>>>TIA
>
>
>I looked at the web site, but the VB code oSch = CreateObject("Scheduler.SchAgent"), does not work on my system in VFP. I would think the Object would be the same.
>
>Does anyone know what the object name is to enter into the CreateObject command.
Daniel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform