Let's say there are 3 folders:
/a/1
/b/1
/c/1
And any of the folders may contain sub folders like
/a/1/x
/b/1/y
...
How to compress /a/1 /b/1 /c/1 folder with files and sub folders into same one 7z file and keep path info well in the package?
7za a Test a b c
will create Test.7z with the three folders and all sub-folders and files stored using relative paths.
If you want to store the folders beginning at the second level, you can use:
7za a Test a\1 b\1 c\1
7z a FOLDER_NAME.zip FOLDER_1/* FOLDER_2/* FOLDER_3/*This will work – batMask May 07 '18 at 03:23