How do I get a notification when a folder is accessed?

I have a shared folder on my local machine. I want to be notified every time someone tries to access it. Can anyone give me some hint on this?

I checked the FileSystemWatcher class , it only exposes events to change / create / delete / rename the contents in a folder , which is not exactly what I want.

I've also tried using event log listeners as shown here , but that's not exactly what I want.

Many thanks.

+2


a source to share


3 answers


You will need a file system filter driver to obtain this information .



So, I just found a commercial vendor that offers a driver with an API. Net: Eldos Callback Filter

+2


a source


Also there might be something not quite what you want, but you can list the connections using wmi, check Windows Share Monitoring



+1


a source


as far as I know, the file system driver fires a changed event if files are only available and files are changed.

0


a source







All Articles