Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get author of file
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01412953
Message ID:
01413055
Vues:
54
Hi Pete,

do you mean any document or any file including for instance a text file created with Notepad? In case of the latter, the answer would be no. Windows does not store the user that created a file. However, there's something very close to that. When you create a file and store it onto an NTFS drive, you become the owner of the file. Ownership can be changed by admins or the owner, though. Also, for administrators ownership is always the Administrators group, not the individual administrator.

Ownership can be determined with the GetOwner method of the FileSecurity object (http://msdn.microsoft.com/en-us/library/system.security.accesscontrol.filesecurity_members.aspx)
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform