Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling a scheduled event on a windows machine
Message
De
03/03/2006 09:40:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01101216
Message ID:
01101225
Vues:
9
This message has been marked as the solution to the initial question of the thread.
>I have a executable which is scheduled to run on a particular machine. Is there anyway I can programmatically disable the scheduled event to run by clicking a button on a form?
>
>Many thanks

Controlling the scheduler seems complicated; what you can do is enabling or disabling some condition, by clicking on a form. For example, when clicking on one button, create a file "runenabled.tmp" in a certain directory; with another button, delete the file.

The scheduled task will run in any case, but tell it to do nothing if it doesn't find the file "runenabled.tmp".
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform