I know this command:
7z e [archive.zip]-o[outputdir] [fileFilter]
But the file I wanna extract is in a Zip inside another Zip for example:
Archivo1.zip\Carpeta1\Archivo2.zip
I use this line but the result is that cannot find archive:
C:\Program Files\7-Zip\7z" x "C:\File 1.zip\Folder 1\File 2.zip" -O"C:\Output folder" "Imagen 1.tif"
How can I make work?
Best Answer
Below is a 7Zip CLI scripted way I did this from a few years back. I've had to use and adjust it a time or two since to accommodate as-needed.
This extracts all zip files (and their contents) within other zip files (and their contents) until no other zip files remain to extract from and essentially traverses recursively from the starting [root] parent zip file until the last child zip file and its contents; extracting files from all zip and sub-zip files.
I've used this method to traverse through about four levels for some ridiculous reason where a company was sending data like this as a standard and could not change it but I was still able to automate the part I was given to do so.
CLI 7za Batch Script
Set the source, destination, and working directory variables for your need and copy the file into the source directory folder and then kick it off. Otherwise, you can change the
*.zip
with<ParentZipFileName>.zip
.Further Resources