使用FileSystemWatcher类来记录正在进行更改的用户 [英] use the FileSystemWatcher class to document the user who is making changes

查看:185
本文介绍了使用FileSystemWatcher类来记录正在进行更改的用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个控制台应用程序,用于检查文件系统上发生的变化。我试图找出是否有可能获得正在进行更改的个人的用户名?

解决方案



<右键单击该文件夹,进入属性>安全选项卡>高级>审核选项卡。可以选择记录该文件夹中发生的事件的审核日志。


I have a console app that checks for changes occurring on the file system. I'm trying to find out if it's possible to get the username of the individual who is doing the changes?

解决方案

You'd be better off enabling auditing on the folder.

Right-click the folder, go to Properties > Security tab > Advanced > Auditing tab. There are options for recording an audit log of events that happen in that folder.

这篇关于使用FileSystemWatcher类来记录正在进行更改的用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆