Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to detect a file update
Message
De
19/06/2008 11:18:31
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01324776
Message ID:
01325465
Vues:
28
Thanks for the suggestions everyone. I solved my problem by creating a small EXE using adir() and launching it with ShellExecute. This gives me the async file monitor I need. BindEvent would have been cooler, but...

Gary

>>Hola Carlos,
>>
>>I read that note too when I was writing my code, but then I also saw that it still works in Vista (I did run tests on vista and worked just fine) so I went ahead. We transformed a WorkToDo application that was using a timer and we had lots of complains about it being slow (we needed a relatively fast timer, I think it checked every minute and we even slowed it down to a couple of minutes) but running the same select statement on hundreds of computers "simultaneously" on the network was a speed killer. Now the same application, with the same select statement(s) in the same number of computers (or even more) runs very smoothly, and much much faster and without generating unnecessary network traffic.
>
>Just one more alternative to this loop - did you try A form independent, enhanced timer fll Download #9315? I haven't tried myself, but I heard it's much better than native VFP timer. Though it says it's for VFP5/6.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform