Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
How to unzip a nested zip file using c# winforms
Posted

You can unzip it once, loop through all the files and if any extracted file extension is *.zip then you can unzip it again. Since it sounds like you know how to unzip once, post that it's just logical coding to have nested unzip.

Still, in case needed, refer:
How to Zip and Unzip entire folders with nested files/folders.. example C# code[^]
Unzip Nested Zip Files While Streaming[^]
 
Share this answer
 
Comments
rohit24c 11-Jun-12 5:34am    
yeah u rite its just logical coding i was making mistake in assigning path
Thanks buddy :)
Sandeep Mewara 11-Jun-12 9:14am    
Welcome.
I would really recommend using http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx[^]. Using this zip assembly you can very easily extract your zip file, and then extract the zip file contained within.
 
Share this answer
 
You may apply 7-Zip or use recovery zip in case some problems

http://www.zip.recoverytoolbox.com will give all the required information for proper extracting
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900