Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hello

I am looking for C# code where I give specific file/directory name, I can get list of information about applications and programs accessed that file in Windows..!

What I have tried:

I've tried with Filesystemwatcher available in VS
Posted
Updated 21-Jun-18 4:59am
Comments
Richard MacCutchan 21-Jun-18 10:43am    
There is no audit trail of file accesses, so FileSystemWatcher is the only option.

1 solution

You can't - windows does not keep a record of what applications accessed which file by default.

You may find this interesting though: Auditing File Access on File Servers – Premier Field Engineering[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900