954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Compress/Zip Files

Hi Guys,

I tried searching on the net for a code to compress/zip files in VB.Net, but could not find any solution.

Can anyone help me with this - I do not like that one of using 3rd party components to do this.

Alternatively, I need a code that will do that WinXP compression function.
When you right-click on a file or folder in WinXP, there is that Send To -> Compressed (zipped) folder. I need to do that programmatically.

Thank you in advance.

michael.ngobeni
Newbie Poster
20 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

compressing files is a very complex algorithm. gzip is a free open-source library. Or if you want to spend the $$$ you can buy the libraries from pkware, the originator of the zip format.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

Hi,
I think “Compression and Decompression of Files using Visual Basic 2005” article on
http://aspalliance.com/1287_Compression_and_Decompression_of_Files_using_Visual_Basic_2005.all may be helpful in this discussion.

This popular white paper is written by a software engineer from our organization Mindfire Solutions ( http://www.mindfiresolutions.com ).

I hope you find it useful!

Cheers,
Byapti

Byaptia
Newbie Poster
11 posts since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

Hi,

Another option is ..

If you have WINZIP product installed on your desktop you could use PROCESS.

Look it up on Google to see how to use it with WINZIP.

Good Luck!
:)

whatever53
Newbie Poster
2 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 
basharyassin
Newbie Poster
1 post since Dec 2011
Reputation Points: 10
Solved Threads: 0
 

Hi,
My favourite method of compression in .net is http://dotnetzip.codeplex.com/ because only a few lines of code are required to compress and uncompress and it also saves it as zip files! :)

JoshArgent
Newbie Poster
5 posts since Dec 2011
Reputation Points: 11
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You