Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Service program: UI form or not?
Message
From
11/05/2021 17:26:00
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01680248
Message ID:
01680320
Views:
18
>>>But the timer has to "live" somewhere and to me a form is just as good place for it as any :) And I understand that once the application starts (maybe after server reboots) it runs unattended. Simply connects to the SQL Server every # minutes and - based on some logic - emails or does nothing.
>>
>>If you go the console app route, you set up Windows Task Scheduler to run it every n minutes.
>>In essence, Task Scheduler provides your timer.
>
>Yes, I understand. I actually have an application which is all reside in one .PRG file. And this .EXE is fired by my ASP.NET application. It works very well. So, I will base this program on the same .PRG approach.

It is a good approach.
The other thing I like about running a console exe from the task scheduler, is that I can run it in windows or in a dos box for debugging.
Console messages let me see how it is running.
If it goes by too quick, I can read the log file.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform