Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simulating Scheduled Tasks in VFP
Message
From
27/01/1999 20:28:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Simulating Scheduled Tasks in VFP
Miscellaneous
Thread ID:
00181129
Message ID:
00181129
Views:
76
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?
Next
Reply
Map
View

Click here to load this message in the networking platform