Click to See Complete Forum and Search --> : FileNotifications...??


DeepCore2
February 20th, 2000, 02:58 PM
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??

Lothar Haensler
February 21st, 2000, 02:23 AM
you wouldn't need to specify "all" directories. Just specify the root directory and set the bWatchSubTree argument of the FindFirstChangeNotification api to true.

DeepCore2
February 21st, 2000, 05:09 AM
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.