Home > Net >  FileWatcher access to the user
FileWatcher access to the user

Time:09-23

Want to develop a record file server to modify the program, look much the same in FileWatcher, but how to implement a record user information without thinking, please directly, (LAN users)
I looked at it and trigger events and file information of users' information, this should be obtained from where?
The red box is a file reference effect of monitoring software


CodePudding user response:

Or self-reliance, solve
The FileInfo fi=new the FileInfo (e.F ullPath);
FileSecurity fs=fi. GetAccessControl ();
IdentityReference IdentityReference=fs. GetOwner (typeof (NTAccount));

CodePudding user response:

Don't get, don't have the function, unless written ifs drive, your so-called get above, is the owner of the file access, rather than the current read/write this file to the user

CodePudding user response:

You this is to obtain the native users or user groups, rather than a local area network (LAN) other users' information, c # is to record the information of local area network (LAN) other users access to the local

CodePudding user response:

refer to the second floor of guiyang horse Ma Shanfu plugging waterproof engineering professional maintenance of swimming pool response:
can't get, don't have the function, unless written ifs drive, your so-called get above, is the owner of the file access, rather than the current users to read and write the file

As if this , and increase knowledge
  • Related