Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I zipped and split two folders with 7zip, so I got File.zip.001 to File.zip.010.

I renamed them to Foo.zip.001 to Foo.zip.010, and if I open them now, they only contain a "Foo.zip" file. Upon extracting this Foo.zip file, I get an invalid archive error.

Is there a way to restore the folder structure inside this zip format?

share|improve this question
1  
How could you have "renamed" four files into ten files? –  David Schwartz Dec 12 '12 at 15:20
    
uhh, wow, my bad, editing now.. sorry! –  onolio Dec 12 '12 at 15:44

2 Answers 2

Renaming the files probably broke the links between them. Rename the files back to File.Zip.001 to File.Zip.010. Then unzip and rezip them with the name you want. If you still have the original files, you could also just zip them again with the new name.

share|improve this answer

Renaming the split archive's parts does not corrupt the contents. As long as the parts are sequentially named you should have no problems extracting either.

I just tested this in fact with 7zip. Created a split archive with parts test.zip.001 - test.zip.005, which I was able to extract fine. Renamed to best.zip.001 - best.zip.005 and it extracted fine. Renamed just the last part to best.z05 and on extracting, got a single best.zip just as you described. Extracting this archive threw an invalid archive error, again matching your experience.

If you're using Windows and have file extensions hidden (as they are by default), it's easy to have thought you renamed the files properly but you might have ended up with mixed extensions. Renaming all the parts in the exact same recommended format i.e. name.zip.001 - name.zip.NNN should fix this.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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