all groups > dotnet security > july 2006 >
You're in the

dotnet security

group:

Determine who created a file


Determine who created a file TM
7/26/2006 11:33:38 PM
dotnet security:
How can you determine who created a file? Using VB2005, .Net Framework 2.0.


Re: Determine who created a file Dominick Baier
7/27/2006 12:00:00 AM
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));

[quoted text, click to view]

AddThis Social Bookmark Button