all groups > dotnet windows forms > june 2005 >
You're in the

dotnet windows forms

group:

Opening Zip Files


Opening Zip Files mahajan.sanjeev NO[at]SPAM gmail.com
6/21/2005 10:14:37 AM
dotnet windows forms:
Hi,

Is there any way that I can feed the path of a zip file to a vb.net
windows forms/console app and get at the files within it? The zip file
will contain csv files and I need to read them one by one for
processing.

Thanks,
Sanjeev
Re: Opening Zip Files Jon Skeet [C# MVP]
6/21/2005 7:41:28 PM
[quoted text, click to view]

See http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
Re: Opening Zip Files Herfried K. Wagner [MVP]
6/21/2005 9:08:28 PM
<mahajan.sanjeev@gmail.com> schrieb:
[quoted text, click to view]

ZIP files:

The Zip, GZip, BZip2 and Tar Implementation For .NET
<URL:http://www.icsharpcode.net/OpenSource/SharpZipLib/>

The VB.NET Resource Kit contains zipping functionality too (note that the
Resource Kit is not available any more, so the answer applies for the case
that you already have a copy of the Resource Kit):

The Visual Basic .NET Resource Kit
<URL:http://msdn.microsoft.com/vbasic/vbrkit/>

It contains ComponentOne Zip for .NET:

ComponentOne ZipT for .NET
<URL:http://www.componentone.com/products.aspx?TabTypeID=1&ItemType=1&PanelIndex=14&ItemID=53569&SubCategoryTypeID=0&TabMapID=57&TabID=70>

Using J#'s zip functionality:

Using the Zip Classes in the J# Class Libraries to Compress Files and Data
with C#
<URL:http://msdn.microsoft.com/msdnmag/issues/03/06/zipcompression/>

..NET 2.0 will contain ZIP support too.

CAB files:

Microsoft Cabinet Software Development Kit
<URL:http://support.microsoft.com/?scid=kb;EN-US;310618>

You can build CAB files using the "MAKECAB.EXE" utility that is IIRC
included in Windows. For extracting CAB files, you can use Microsoft's
"EXTRACT.EXE", which is available on the Windows XP CD or as part of the
Windows XP Support Tools:

<URL:http://groups.google.de/groups?selm=u%24EaZ074EHA.1296%40TK2MSFTNGP10.phx.gbl>

Alternative you can use p/invoke on 'SetupIterateCabinet'. A VB6 sample can
be found here:

View and Extract CAB File Contents Programmatically
<URL:http://www.thescarms.com/vbasic/CabExplorer.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
AddThis Social Bookmark Button