>Hi All
>
>I need to create a VFP9 application that runs as a service. I have the app built already. What is the current recommended way to set it up as a service in Windows 2010, 2012, or 2016 servers?
>
>TIA
(Just my 0.02 cents)
Probably such an app would use timer to fire at intervals.
In the past I have done that (don't remember how), but then was sorry on the long run. My service app had a timer in it, and for no apparent reason it was deciding to stop after a while, with no recognizable pattern. One had to manually start the service again.
Then I created a C# based service instead as a wrapper that calls my app, it worked flawlessly provided set under correct identity. Later in the years, I converted that to be added to and run via windows scheduler. That one performed best (and much easier to debug in case something doesn't work).
VFP service app:
https://blogs.msdn.microsoft.com/calvin_hsia/2004/12/13/creating-a-vfp-application-as-a-service/And this one, ( surprised to see that it is using my FoxyClasses as a sample - although from outdated link :)
https://www.coretechnologies.com/products/AlwaysUp/Apps/RunVisualFoxProAsAWindowsService.html