I have a zip file results.zip. It contains two folders that contain a bunch of zip files -- PASS/test1.zip, FAIL/test2.zip, FAIL/test3.zip.

On linux it is trivial to unzip these in a couple of steps:

$ unzip results.zip
$ echo FAIL/*.zip PASS/*.zip | xargs -n1 unzip

Some windows users complain that it is cumbersome to unzip all the files on windows. (There are dozens of zips inside the main zip.) Is there a mechanism that would allow them to expand the contents of all of the files at once?

Some customer boxes are newer, but there are many that are still using WinXP.

link|improve this question

78% accept rate
feedback

4 Answers

up vote 1 down vote accepted

Give them unzip.exe and a batch script like

unzip results.zip
for %%i in (FAIL\*.zip PASS\*.zip) do unzip %%i
link|improve this answer
feedback

Try ExtractNow. I haven't tested this feature myself, but it does claim to support it.

link|improve this answer
feedback

You could have them use 7-zip. It's free (Corporate use may not be, check with the web site) and has command line and graphical UI.

http://www.7-zip.org/

You could have them use 7-zip. It's free (Corporate use may not be, check with the web site) and has command line and graphical UI.

http://www.7-zip.org/

Sorry, I guess I didn't understand what you wanted.

You could either write a batch file to loop through it, or potentially leverage its SDK and write an app to do what you want using its libraries.

The following example batch file worked for me - it may not meet your needs though because I didn't mess around with subfolders.

@echo off

if "%1x" == "x" goto startup

7z.exe e %1

move %1 old

:startup

if not exist old md old

for %%f in (*.zip) do call %0 %%f

link|improve this answer
Thanks for the pointer. "You can use 7-Zip on any computer, including a computer in a commercial organization. You don't need to register or pay for 7-Zip." Does it handle nested archives? I don't see that capability mentioned on the website. – bstpierre Oct 27 '10 at 0:58
No joy, 7-zip doesn't do what I need it to do. – bstpierre Oct 27 '10 at 1:08
@bstpierre - updated the answer to show an example of how to do what you're wanting to do. You could also use the 7 Zip libraries to write a custom app to do it as well. – Mark Allen Oct 27 '10 at 22:35
Thanks for the update. Writing a custom app is way out of scope for what I want, but a batch file might work. – bstpierre Oct 28 '10 at 11:46
feedback

See this

http://www.softpedia.com/get/Compression-tools/Multi-Unpacker.shtml

"Nested archive handling (recursively extract archives that were packed in other archives)."

OS: Windows 2K / XP / 2003 / Vista

link|improve this answer
This appears to be nonfunctional. Pointed it at a folder with a zip archive as described above (with ~60 archives inside), and it says it extracted 2 archives. No output seen on the disk. – bstpierre Oct 27 '10 at 1:16
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.