Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simulating Scheduled Tasks in VFP
Message
De
27/01/1999 20:28:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Simulating Scheduled Tasks in VFP
Divers
Thread ID:
00181129
Message ID:
00181129
Vues:
75
How can I best set up a process that needs to run every hour?

For instance, I need to run a program that goes out and checks
for the existance of new files on a directory. If new files
are found then a program will need to be run to import this
data.

Thus far, I have thought of something like the following:

DO WHILE .T.
lnx = ADIR(lax,'\searchdir\*.*')
IF lnx > 0
DO importprogram
ENDIF
ENDDO

I suspect that the CPU useage will always be at 100% and
a PC will need to be dedicated to only this task.

Is there a better way to do this that can check every
hour or so. Perhaps a class with a timer event.

I suspect that someone has had to create something like
this before... right?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform