Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Update of Item in Windows Task Scheduler
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00639625
Message ID:
00639870
Vues:
15
>>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.

FWIW, I don't have a 'Scheduler' OLE reference under NT/2K/XP; I suspect that it's an artifact of Win9x, but haven't got a copy of Win9x to prove it. Task scheduling behaviors under 9x-family and NT-family OSes are different.

The MFC example references an AcxtiveX control separate from the base OS distribution - I'd bet that you need to install a component to use automation.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform