Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to detect a file update
Message
De
17/06/2008 12:12:27
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:
01324794
Vues:
29
Hi Naomi,
Thanks for the reply. What I want to do is monitor a file and know when it's being written to. I've played with the VFP API sample
that uses bindevent, but it only registers file creation/deletion not updates.

I'm hoping there is an argument to look at file update events as well as creation/deletion. I tried both substituting and adding SHCNE_UPDATEITEM to the example's WM_USER_SHNOTIFY, but I have no idea what might be the correct arg or combination.

Gary

>>Hi all,
>>
>>I'm trying to figure out how to detect an update in a text file. I want to monitor updates to a log file from a 3rd party application. I looked at the VFP 9 sample and tweaked it to point at a specific file easily enough, but it only reports file deletion/creation, not updates to the file. Does anyone know how to intercept a file update?
>>
>>Thanks.
>>
>>Gary
>
>Not sure, if this is helpful, but check Re: Send signals to each user using same system Thread #1293566
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform