Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,
I want to fetch the user's name who were accessing the files in a shared folder. I already used filesystemwatcher class to monitor the folder, But unable to get the user's name who were accessing the files. Through what methodology i can able to achieve my goal?

Thanks in Advance.
Posted

1 solution

You cannot monitor who is accessing a file using the filesystemwatcher.

You would need to write an application that hooks into the OS to monitor all file system calls. And that is not so easy a task.
 
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