Detect exactly which file/folder changed when monitoring folder
Posted on 2002-07-02
I'm using VB6 and I'm using the FindFirstChangeNotification along with the other ChangeNotification API's and the WaitForSingleObject API to detect when a specified folder's contents have changed. For example, the program will alert me if someone adds a file, deletes a file, modifies a file in that folder, etc. I can detect that something changed but I have been unable to figure out exactly what changed. For example, if someone deletes a file, then I can only detect that the folder in which the file resided has in some way changed. I'd like to be able to log exactly what was deleted, added, etc.
Looking forward to your responses.