Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running a VFP EXE on the VM Server
Message
De
17/10/2019 09:04:32
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01670603
Message ID:
01671524
Vues:
57
>Hi,
>
>When Win Schedule an app (VFP app), does Windows "moves" the app into some folder? I know this is a newbie question since I have never Win schedule an app before. The reason I am asking is once the app is scheduled, can I update it? For example, if find a bug or need to add a feature, do I need to Win Schedule the app again, or simply updating the EXE will do?

Not if it is running at the moment. You'd have to close it from the scheduler, but then I'm not sure that works because the close signal has changed since the last edition of VFP so it doesn't recognize it and doesn't quit. It could perhaps be caught by a bindevent() to windows messages, to see which one is it, and react to that with a quit.

What I did for updates was to invoke the taskmanager aka bouncer and simply kill the task, then replace the exe with a new version and then restart it from the task scheduler.
Another, easier way, was to have the version number in the filename, and just place the new exe in the same folder, then edit the task in the scheduler to run the new exe instead. That way the old exe would continue until it would regularly exit, and the next run would use the new exe. The trouble with this approach is that I need to know the password of the account under which it runs, which I didn't, for several clients.

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform