Compressing (zipping) files

R

reidarT

I will develop a backup routine with local files (zipped) to an internet
server via ftp.
How do I zip files in Vb.net?

reidarT
 
H

Herfried K. Wagner [MVP]

reidarT said:
I will develop a backup routine with local files (zipped) to an internet
server via ftp.
How do I zip files in Vb.net?

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/product...3569&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/[email protected]>

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

m.posseth

Cor

the question is slightly changed

From : " How can I zip (compress) a file in vs2005 with windows own
zip-program? "

To : "I will develop a backup routine with local files (zipped) to an
internet server via ftp. How do I zip files in Vb.net?"





Reidar so you wanna ZIP huh ??? :)



Well i can sure recomend you the free # ZIBLIB library it comes with full
source and examples in C# and VB

http://www.icsharpcode.net/OpenSource/SharpZipLib/

works perfect and not only with zip :)

regards



Michel Posseth [MCP]
 
A

_AnonCoward

:
: >
: >I will develop a backup routine with local files (zipped) to an
: >internet server via ftp.
: > How do I zip files in Vb.net?
:
: 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):


I don't know if this is the same thing you're referring to above, but try
here:

http://www.microsoft.com/downloads/...B4-FFCB-40BD-9BFE-95256ABD0E13&displaylang=en


<snip>


Ralf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top