In .Net how can I monitor if a file has been accessed (opened) by other programs? I can't see OnOpened event in FileSystemWatcher, so I assume it can not do that. Is there any other way to do it? It's clearly possible in Windows, is there some sort of hook available from .Net?
Check out the NotifyFilters property. You probably want to look for changes in access date/time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With