SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Saving and reading NTTaggedData

Last post 10-17-2007 8:17 PM by JohnReilly. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 10-16-2007 1:26 PM

    • fccapa
    • Not Ranked
    • Joined on 10-16-2007
    • Denmark
    • Posts 2

    Saving and reading NTTaggedData

    Hi

    I want to store GetCreationTime, GetLastAccessTime and GetLastWriteTime for each of the files I add to a zip file and then write those data to the files when extracted on a Windows based computer.

    I found that to save the information, I can use NTTaggedData. I can create the object and set the properties, however I cannot figure out how to save the info to the ZipEntry object and how to extract them again during uncompression.

    I am using VB.NET.

    Dim ntTags As New NTTaggedData

    ntTags.CreateTime = IO.File.GetCreationTime(sInput)

    ntTags.LastAccessTime = IO.File.GetLastAccessTime(sInput)

    ntTags.LastModificationTime = IO.File.GetLastWriteTime(sInput)

  • 10-16-2007 8:50 PM In reply to

    Re: Saving and reading NTTaggedData

    Hi,

    Check out public void AddEntry(ITaggedData taggedData) which is in the ZipExtraData class.  This can be used to set the ExtraData property for a ZipEntry before it is added to an Archive.

    To read this you can reverse the steps Creating tageed data from the ExtraData if it exists.

    hth, -jr-

     

  • 10-17-2007 9:15 AM In reply to

    • fccapa
    • Not Ranked
    • Joined on 10-16-2007
    • Denmark
    • Posts 2

    Re: Saving and reading NTTaggedData

    Hi

    Thank you for pointing me in the right direction! It helped.

    Regards

    Flemming Christiansen

  • 10-17-2007 8:17 PM In reply to

    Re: Saving and reading NTTaggedData

    You are welcome!
Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.