473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Compressing (zipping) files

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
Jan 20 '06 #1
6 5008
Reidar,

Am I blind?

A lot of people have tried to help you. Did you not pay attention to it?

http://groups.google.com/group/micro...360d41d005f3c3

Cor
Jan 20 '06 #2
"reidarT" <re****@eivon.no> schrieb:
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/products.aspx?TabTypeID=1&ItemType=1&PanelIndex=14 &ItemID=53569&SubCategoryTypeID=0&TabMapID=57&TabI D=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/>

Jan 20 '06 #3
Herfried,

See the link I have given to TReidar, that is to a question in this
newsgroup which is almost the same question as now.

http://groups.google.com/group/micro...360d41d005f3c3

And of course as well answered by you.

Cor
Jan 20 '06 #4
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]



"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
Reidar,

Am I blind?

A lot of people have tried to help you. Did you not pay attention to it?

http://groups.google.com/group/micro...360d41d005f3c3

Cor


Jan 22 '06 #5
Michel,

I saw that, however it stays strange for me.

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?"

Jan 22 '06 #6

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uG**************@TK2MSFTNGP10.phx.gbl...
:
: "reidarT" <re****@eivon.no> schrieb:
: >
: >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/d...displaylang=en
<snip>
Ralf
--
--
----------------------------------------------------------
* ^~^ ^~^ *
* _ {~ ~} {~ ~} _ *
* /_``>*< >*<''_\ *
* (\--_)++) (++(_--/) *
----------------------------------------------------------
There are no advanced students in Aikido - there are only
competent beginners. There are no advanced techniques -
only the correct application of basic principles.
Jan 22 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Arthur | last post by:
Does anyone know if the new Windows 2003 built-in .zip compressor/decompressor is available to scripting? If so, can you kindly point me in the right direction? I've searched and searched MSDN...
0
by: Yuancai \(Charlie\) Ye | last post by:
Hi, All: I am happy to annouce that we have formally released our latest SocketPro version 4 at www.udaparts.com, an advanced remoting framework written from batching/queue, asynchrony and...
0
by: Benjamin Bittner | last post by:
hallo ng, first of all, for the zipping progress i use the ziplib from http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx now to my problem. im trying to build a little application...
3
by: Hon Yuen, Ng | last post by:
Hi I have a dataset that stores quite a lot of data from database and I need to transfer this over network with slow connection. May i know is it possible to "compress" the dataset in whatever...
2
by: Sher | last post by:
Hi, I have a project which requires having users upload files to be burnt to compact disk. The requirement is to zip (compress) and/or span files to compact disk size on upload. I cannot use...
6
by: sri2097 | last post by:
Hi, I'm trying to zip a particular fiolder and place the zipped folder into a target folder using python. I have used the following command in 'ubuntu'. zip_command = 'zip -qr %s %s' % (target,...
4
by: sri2097 | last post by:
Hi all,This is in reply to the 'Compressing folders in Windows using Python' query I raised y'day. I figured out that windows does not allow command line zipping so I started looking for...
1
by: Jens Jensen | last post by:
Hello, I use the code below to zip files to a single .zip destination. I get the expected result when i work on my developement machine (WinXP sp.2). When i deploy the web application which...
2
by: karen.google | last post by:
I have an SSIS package that I'm converting from DTS (SQLServer 2005), and the ActiveX Script Task (in VBScript) is deprecated, so I'm trying to convert things to Script tasks (in VB .net). I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.