Fetching the username who last modified or created

2019-05-11 23:07发布

问题:

Is it possible to get the name of the user who just pasted a file into a folder?

A brief overview of what I am trying to do: My application keeps watch on a folder for new files every 10 minutes. If it finds any new file it will upload that file via FTP to a specified location. I would like to know who dropped this file into the folder. Please note that this could be different from the person who created the file.

Thanks Nishant

回答1:

The identity of the user modifying a file is not stored in the NTFS Change Journal, but you could use auditing of file access as suggested in this related post.



标签: c# fileinfo