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 to share
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 to share