mRizvandi

Hi

i'm new user in c# and i want to get information about ntfs files. such as file owner. my application run on windows 2003 server with ntfs file system.

please guide me about namespaces in dot net or other ways to get it.

best regards




Re: Visual C# General Get user information about ntfs files

rlnd

Hi!

The primary class to get information about Files is System.IO.FileInfo (for directories, it is DirectoryInfo). This class has a method "GetAccessControl", which returns a FileSecurity object with lots of information about NTFS permissions and groups and users associated with a file. You can get the owner of the specified file via calling "GetOwner" on the FileSecurity object.

Greets





Re: Visual C# General Get user information about ntfs files

Figo Fei - MSFT

Hi,

Dsofile.dll can be used to read any files with summery meta-data. Please refer to the link below for more information:

http://blog.oppositionallydefiant.com/PermaLink,guid,782587e3-3526-4c75-aae8-ce2b777dad67.aspx