use the FileSystemWatcher class to document the user who is making changes
问题 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? 回答1: 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. 回答2: No, it's not possible, the NTFS or FAT file system which is what Windows uses doesn't