Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FileSystemWatcher

0 views
Skip to first unread message

[Yosi]

unread,
Sep 23, 2004, 9:09:02 AM9/23/04
to
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);


Cowboy (Gregory A. Beamer) - MVP

unread,
Sep 23, 2004, 9:23:02 AM9/23/04
to
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!
***************************

[Yosi]

unread,
Sep 26, 2004, 3:17:02 AM9/26/04
to
How?
0 new messages