Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
4.33/5 (2 votes)
See more:
Hi All,
I am using FileSystemWatcher control and handling the events correctly but I need the username or IP of the user changing the files?
Thanks.
Posted
Comments
Bernhard Hiller 11-Feb-14 9:24am    
That's a little equivalent to: file is in use - but by whom? The .Net framework does not provide something useful for that purpose. You need to find some handle associated with that file (while it is still in use by that user!), and then come several more steps till you get the username (I do not know them, only read about that somewhere).

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