FileSystemWatcher

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I get the user name who change the folder?
I want also to know who mad the changs.

myWatcher = new FileSystemWatcher(DirPath);
myWatcher.EnableRaisingEvents = true;
myWatcher.IncludeSubdirectories = true;
myWatcher.Created += new FileSystemEventHandler(myWatcher_Created);
myWatcher.Changed += new FileSystemEventHandler(myWatcher_Changed);
myWatcher.Deleted += new FileSystemEventHandler(myWatcher_Deleted);
myWatcher.Renamed += new RenamedEventHandler(myWatcher_Renamed);
 
In the event args is the full path of the file changed. You can interogate
the file and determine who last changed it. For deletes, I am not sure how to
do it.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
How?

Cowboy (Gregory A. Beamer) - MVP said:
In the event args is the full path of the file changed. You can interogate
the file and determine who last changed it. For deletes, I am not sure how to
do it.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Back
Top