Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling a scheduled event on a windows machine
Message
From
03/03/2006 09:40:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01101216
Message ID:
01101225
Views:
10
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform