However, this link, http://www.devx.com/vb2themax/Tip/19292, has some VB6
code that uses few Win32 APIs to get the file owner. Perhaps you can try
the equivalent in .NET as well. I have not tried this code though.
Is there a way to get owner of a file or a resource with .Net classes ?
Add System.Management in your references and do a search on the net for WMI.
The WMI namespace you need is "Win32_LogicalFileSecuritySetting" which will
give you access to information on the file for who owns it (your can also
change ownership using "CIM_DataFile")
Chris
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.