Staredit Network > Forums > Technology & Computers > Topic: Unzipping zip files in zip files
Unzipping zip files in zip files
Oct 1 2012, 11:09 pm
By: rockz  

Oct 1 2012, 11:09 pm rockz Post #1

ᴄʜᴇᴇsᴇ ɪᴛ!

So some idiot decided to put a zip file in a zip file (possibly in a zip file). Well it's bullshit trying to find anything in such a silly file structure, so I was wondering if anyone knew a simple command line to extract everything. Essentially I want to change each .zip file to just a folder. There are well over 10000 files I'm dealing with.

http://puu.sh/1awBF

Here's a test file that has 5 idiotic layers.

7z x -r *.zip doesn't work. In fact it extract to the current directory. Ideally I want to extract ./Layer_1.zip to ./Layer_1, if that makes any sense.

Bonus points for a windows applicable solution.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Oct 2 2012, 12:18 am Lanthanide Post #2



Unless there are multiple zip files at each layer, what's the problem? Your example has only a single zip file in each layer. Also, even if it does have multiple zip files in a single layer, it seems likely they would all be part of the same zip file, so an unzip utility should easily be able to handle that.



None.

Oct 2 2012, 5:00 am ShadowFlare Post #3



The easiest way to do that would probably be with a scripting language, maybe a more shell-oriented one.



None.

Oct 2 2012, 4:27 pm NudeRaider Post #4

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

1st google result: http://www.instantfundas.com/2010/11/recursively-extract-multiple-rar-or-zip.html




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:30 pm]
Ultraviolet -- That's strange, it looks like you targeted the base image file (sometimes people make the mistake of just using the imgur page link which doesn't work for embedding) but it still didn't work it sounds like.
[03:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[03:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[03:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[03:05 pm]
NudeRaider -- I think SEN has trouble with https or hotlinking is forbidden. It certainly is nothing about the size, it just fails to get any size. You can get it working if you use imgur and include the actual image link for the img tag. Like this: [img=https://i.imgur.com/ddYqXZa.jpeg]
[11:15 am]
ManCubuS -- Hey fellas! Anyone knows why when I try to upload an image it says "failed to get image size"? I even tried making it so small. Imgur isn't working here and I tried postimg no luck.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
[2026-7-23. : 1:40 am]
Oh_Man -- tthen u come to SCBW and it's like - upload WAV, play WAV.... sigh why cant it be that easy
[2026-7-23. : 1:40 am]
Oh_Man -- and no consistent easy to use way to then play the audio either
Please log in to shout.


Members Online: Symmetry, Roy