>>Thank you. Then the windows scheduler will be the approach (if customer approves, of course).
>>
>>>Been there, done that. I would second on Sergey's advice. Do not try to run a VFP service with a timer continuously. It stops working with no reason. We ended up with using windows scheduler itself (also much more flexible).
>
>I have found the same - write a regular exe and run it in windows task scheduler works great, and a VFP program with a timer is problematic.
>
>Just write your program as a batch - do your task and exit, no READ EVENTS.
>
>I found writing out progress to the console and a log file to be useful.
>Rick Strahl has some code on West-Wind.com how to make a console window
>
https://west-wind.com/wconnect/weblog/ShowEntry.blog?id=871 >
>And be sure to use Sys(2335) to prevent dialog boxes or other UI that hangs your application.
https://www.tedroche.com/hackfox7/s4g808.html>
>And the last catch is to use a TRY CATCH so you can trap any errors and log them and maybe attempt to email the error details to yourself.
>
>Good Luck!
Thank you so much for your input.
"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