Is it possible in the Windows environment to detect if a file is being opened with with .NET
I would like to place a handler on the file system to detect if a file or any file is being opened, is this possible?
The simplest solution would be to use a FileSystemWatcher and set the filter to NotifyFilters.LastAccess, which will tell it to watch for a change in the last 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