Delete one file from archive

Help
Fish
2011-05-18
2014-03-02
  • Fish
    Fish
    2011-05-18

    Hello

       I am using 7zip C++ for developping my project. I have two question.

       1. How to extract just one file from the archive ?

       does it works if i use archive->(Extract)(const UInt32* indices, UInt32 numItems, Int32 testMode, IArchiveExtractCallback *extractCallback) 

        2.  how to delete some of the files in archive?

    Autre thing i want to know there is a 7zr.exe in LZMA SDK.  It contains most of the functions in 7zip, where can i find the source code of this file. Or any exemples of using the functions such as delete a file, add a file in archive….etc

    Thank u for your help

     
  • Igor Pavlov
    Igor Pavlov
    2011-05-19

    1. Yes
    2. Example code:
    CPP\7zip\UI\Client7z\

     
  • Majid
    Majid
    2014-03-02

    Hello
    Did u can extract one file from archives ? can you help me with a sample code for di it ???

    Thanks...