Menu

How to create anti-item by using FileList?

Help
Rev
2019-04-21
2019-04-21
  • Rev

    Rev - 2019-04-21

    I want to create an archive with file list like this:
    /folder1
    /folder2
    /folder1/old_file.txt

    But the last file must be an anti-item, to delete that old file upon extracting from archive.
    How can I do this? Is there some syntaxis for that?

     
  • Igor Pavlov

    Igor Pavlov - 2019-04-21

    for anti-item:
    1) create that file1
    2) add file1 to exist.7z
    3) delete file1
    3) update exist.7z to update.7z as described in 7-Zip help:

    7z u c:\1\exist.7z -up0q3x2z0!c:\1\update.7z *
    
     

Log in to post a comment.