Tech Support > Microsoft Windows > Development Resources > how to get change filename(rename) event in windows 2000 or XP?
how to get change filename(rename) event in windows 2000 or XP?
Posted by Lee, Myoung Ho on October 14th, 2003


Hi,

Is it possible to catch change filename(rename) events in windows 2000
service program?

If possible, how can do it?


Lee.

Posted by Jeremy Collins on October 14th, 2003


Lee, Myoung Ho wrote:


FindFirstChangeNotification() perhaps?

--
jc

Remove the -not from email


Posted by Lee, Myoung Ho on October 16th, 2003


Thanks a lot!

I tested FindFirstChangeNotification() and FindNextChangeNotification().

It sends filename change notification event but there is no information that

which file is changed.

How can I find which file is changed?

Thanks again.

Lee.



Jeremy Collins <jd.collins@ntlworld-not.com> wrote in message news:<wySib.620$KA5.5568@newsfep4-glfd.server.ntli.net>...

Posted by Jeremy Collins on October 16th, 2003


Lee, Myoung Ho wrote:

There's always the brute force approach. Make a list of files
(FindFirstFile() / FindNextFile()), and after the notification
make a second list and compare them.

--
jc

Remove the -not from email


Posted by Jerry Coffin on October 25th, 2003


In article <18adaea1.0310140419.5b68cad0@posting.google.com>,
bdrum992000@yahoo.co.kr says...
ReadDirectoryChangesW with FILE_NOTIFY_CHANGE_FILE_NAME.

--
Later,
Jerry.

The universe is a figment of its own imagination.


Similar Posts