Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running a VFP EXE on the VM Server
Message
 
 
To
17/10/2019 09:04:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01670603
Message ID:
01671525
Views:
41
>>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.

Most likely I won't know the password either. And I can easily choose the time for the update when the program will not be running, since it will only run one time per week for about 2-3 minutes. What I read in your message is that Windows does not actually move the application file (EXE) to another folder. Therefore, once this project goes into effect, I will simply replace the EXE one time and see what happens.
Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform