Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Add new file to existing 7z archive, but place it in a subfolder

I have 7z archive that looks like this

archive.7z
/
 -Folder1
   file1
 -Folder2
   file2

I know that I can add file3 to the root by

7za.exe a archive.7z file3

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

But I want to add file3 in Folder2. How to do that?

>Solution :

Answered here: https://superuser.com/questions/238399/how-to-specify-relative-path-in-7-zip-command-line/1097301

You can create directory structure similar to archive one and compress it with required file inside

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading