Rename Files in Archive

Help
2014-03-04
2014-03-04
  • Walter Hahn
    Walter Hahn
    2014-03-04

    Hello,

    I use code based on the examples Client7z and Console with 7z.dll to extract, compress and delete files from/to 7z archives. Is these an example available to rename files in a 7z archive without using the latest 7z.exe that supports this feature.

    Best regards

    Walter Hahn

     
  • Igor Pavlov
    Igor Pavlov
    2014-03-04

    IArchiveUpdateCallback::GetUpdateItemInfo

    newData newProps
    0 0 - Copy data and properties from archive
    0 1 - Copy data from archive, request new properties
    1 0 - that combination is unused now
    1 1 - Request new data and new properties

    indexInArchive = -1 if there is no item in archive, or if it doesn't matter.

     
  • Walter Hahn
    Walter Hahn
    2014-03-04

    Hello Igor,

    I checked your suggestion with success. Thank you for your fast advise.

    Best regards,

    Walter Hahn