Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using a timer
Message
De
23/06/2016 05:54:10
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
22/06/2016 14:40:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2012 R2
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01637566
Message ID:
01637607
Vues:
69
>The timer you show is set to fire every half-second and to run 10 times (that's what the loop is about), then shut down. For what you're trying to do, you could just set the timer to go off after 30 minutes by setting Interval to 1800000 (30 * 60 * 1000 milliseconds). But I'm not sure I'd be comfortable doing that with a VFP timer. You might consider using the Windows scheduler instead.

I'm using the scheduler a lot, and the main trouble with it are the customers' cerberi, aka the IT security folks. They generally give you an account with some limitations, and then anything may happen - your account doesn't have the rights to run cmd.exe (used by the scheduler), or you put quotation marks around the folder where to run the exe (which you must not do, but you MUST put them around the exe if it contains spaces), or they suddenly decide that it can't have a permanent password and then it expires before anyone notices. Sure it reports that a task is not running, in the event log, buried among thousands of other entries.

This last issue, in my experience, takes about three cycles of set up, run for months, break when it expires, set up again. By that time the users finally learn how to apply pressure to the cerberi, and by then it's probably the third set of those guys too, so you get someone reasonable who knows what you're talking about.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform