CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2

    FileNotifications...??

    What if my app wants to know if a file with a certain extension has been renamed, moved, deleted, added etc. when activated?? One solution is to use FindFirstChangeNotification in an EXE-server...but only if I know in advance what directories to look in (One could of course add all directories, but you all know what would happen if you do that). So, is there a way to find out from the kernel where it's working (What drive and what directory) when doing file operations no matter from what app these operations are done?? Or is there other solutions but the EXE-server with FindFirstChangeNotification??


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: FileNotifications...??

    you wouldn't need to specify "all" directories. Just specify the root directory and set the bWatchSubTree argument of the FindFirstChangeNotification api to true.


  3. #3
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2

    Re: FileNotifications...??

    Yes, while this is true, it wouldn't work on Windows 95 since it doesn't support true in watching subdirectories. It's only 98 and NT4 that supports this facility.


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