>Bret,
>The following works for me (VFP7, Win2K):
>
>oSch=CreateObject("Scheduler.SchAgent")
>oSch.refresh
>osch.Job("Task1").Flags= 4
>osch.Job("Task1").save
>
>
>HTH
The above requires an external DLL loaded. I was hoping that the Windows operating system would have a method that VFP could get to in order to do this. Loading external DLLs can get the job done, but all our computers are going to be locked down in the future and the non-ms dll will not be available.
>>>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.
Bret Hobbs
"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope