CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    File Change Notification

    I have a thread that uses a file change notification handle to watch a directory for file (last write)changes. The problem is, in that directory there are hundreds of files. I'm interested in knowing any last write changes on only specific files. How do I do this, because the file change notification handle returns whenever any file in the dir changes. Is there anyway to monitor specific files only in a dir for write/update changes without waiting in a loop.

    Thanks for your help.


  2. #2
    Guest

    Re: File Change Notification

    i had a similar problem but found nothing - you should search for your files after each notification - no way.
    i suspect some filter driver can do this but it will be more complex by all means from win32 enumeration. enumeration of all files is not slow and can be done each time notification event signals.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured