Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Service program: UI form or not?
Message
De
11/05/2021 17:26:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01680248
Message ID:
01680320
Vues:
19
>>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform