Home All Groups Group Topic Archive Search About

Determine who created a file

Author
27 Jul 2006 6:33 AM
TM
How can you determine who created a file?  Using VB2005, .Net Framework 2.0.

Author
27 Jul 2006 7:18 AM
Dominick Baier
You can check for the owner - but thats not necessarily the same person that
created the file.

FileSecurity security = new FileSecurity(filename, AccessControlSections.Owner);
NTAccount owner = (NTAccount)security.GetOwner(typeof(NTAccount));

Show quoteHide quote
> How can you determine who created a file?  Using VB2005, .Net
> Framework 2.0.
>