Click here to Skip to main content
15,896,359 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
How to unzip files or folders programmatically using vb.net without adding external references?
Posted
Updated 13-Jan-11 22:25pm
v3

 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 14-Jan-11 2:07am    
@Kasson: Cleckety -- ready to VB? A 5.
Dalek Dave 14-Jan-11 5:06am    
Good Link
Kasson 14-Jan-11 5:09am    
Thanks Dalek.
Hi,

you can use the GZipStream class:
http://msdn.microsoft.com/en-us/library/system.io.compression.gzipstream.aspx[^]

but as I remember this feature of .NET requires that the files/folders were zipped with GZipStream too. It can't handle unzipping normal zip files.
To unzip normal archives, you should use an external component such as the SharpZipLib library:
http://www.icsharpcode.net/OpenSource/SharpZipLib/[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 14-Jan-11 2:06am    
@JF2015: Yes, as simple as that. Good answer - a 5.
Dalek Dave 14-Jan-11 5:06am    
Good Call.
Espen Harlinn 15-Jan-11 10:38am    
5+ Good 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