I'm running Windows 10, however I'll need it to work on Windows 7 as well.
I have file.zip
which contains x
zip files within it, each of which also contain x
zip files. How would I be able to extract all of these "not manually"? I.E. with a bach file or a python script?
Windows – Extract ZIP file and then all sub-zip files
batch filewindowszip
Best Answer
Below is a method I've used in the past for the same type of task that you describe which I pulled from one of my "bag of scripts". I used the free 7-Zip application for this task with 100% success.
Note: The 7za executable file may either need to be copied to the
/system32
folder or you may need to set the path it resides into thePATH
environment variable.Batch Script
You will need to set the source, destination, and working directory variable values accordingly for your environment and needs only and the rest should just work as expected.
Further Resources