FileSystemWatcher 自己应该是不行,这能在监控到文件被修改的时候再去调用其他函数,找到谁修改了文件。 看看这两篇文章: Get Username of an Accesed File http://stackoverflow.com/questions/7861512/get-username-of-an-accesed-file Find out username(who) modified file in C# http://stackoverflow.com/questions/11660235/find-out-usernamewho-modified-file-in-c-sharp
1.监控得到哪个文件被修改; 2.用fileinfo,去访问文件一些属性。
110,537
社区成员
642,576
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧