Jeffrey
Guest
|
Posted:
Wed Jul 13, 2005 9:25 pm Post subject:
Question about: ReadDirectoryChangesW( ) |
|
|
Greetings,
I am using ReadDirectoryChangesW( ) API to do a file backup application.
The theory is simple as it is: to replicate every change made to the source
folder
to a backup folder.
Now the problem I am having is: multiple notifications could be raised for a
single
operation. For example, whenever I rename a file from the Windows Explorer,
say,
A.TXT to B.DAT, I get two notifications in a row: one for reanmeing, the
other is for
modifying.
Another example is, when creating a new file in the Windows Explorer, I got
many times
creation and modifying notifications, which result in copying the same file
many times because
I backup the file at each notification.
So the question is: is it possible to get only one notification for each
operation?
Thanks,
Jeff |
|