Fetching the username who last modified or created

2019-05-11 23:33发布

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

标签: c# fileinfo
1条回答
可以哭但决不认输i
2楼-- · 2019-05-11 23:56

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.

查看更多
登录 后发表回答