none
Metadata from files stored in a ntfs file share RRS feed

  • Question

  • Hi guys.

    I am looking for a way to extract the details and metadata of all files stored on a NTFS fileshare. 

    Thus far, I have been able to get the basic file details i.e created, last accessed, modified. 

    I need more, e.g, author/created by, no of words (if available), permissions, etc.

    I am working in vb.net. 

    Any help would be appreciated. 

    Thanks in advance!

    Friday, April 26, 2013 8:35 AM

Answers

  • You're going to have to go the Shell to get that info.  That means you're going to get into interop code which isn't trivial because of how the shell works.  IShellItem2, I believe, will give you access to the information but you're going to have to play around with it to get the information you want.

    Refer to this article for info on getting information from the shell: http://msdn.microsoft.com/en-us/library/windows/desktop/ff934858.aspx.  I recommend that you take a look at the older WIn32API Code Pack library for working with this stuff in .NET.  I cannot vouch for how much the code pack will help you with working with the shell properties though.

    Michael Taylor
    http://msmvps.com/blogs/p3net

    Friday, April 26, 2013 9:11 PM
    Moderator

All replies

  • You're going to have to go the Shell to get that info.  That means you're going to get into interop code which isn't trivial because of how the shell works.  IShellItem2, I believe, will give you access to the information but you're going to have to play around with it to get the information you want.

    Refer to this article for info on getting information from the shell: http://msdn.microsoft.com/en-us/library/windows/desktop/ff934858.aspx.  I recommend that you take a look at the older WIn32API Code Pack library for working with this stuff in .NET.  I cannot vouch for how much the code pack will help you with working with the shell properties though.

    Michael Taylor
    http://msmvps.com/blogs/p3net

    Friday, April 26, 2013 9:11 PM
    Moderator
  • Thanks for the feedback Micheal.
    Sunday, April 28, 2013 10:17 AM