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.

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.

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!
:)

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! :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.