VB.net Zip a file

Hi, I please need some help to create a function to compress/zip a file. I do not want to use any 3rd party tools. So i am hoping to find out a way to do it using the Framework and windows. If i can access the windows API to compress the file then that is great thanks.
Who is Participating?
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
if you are using at least .Net Framework 3.0, have a look at http://www.emoreau.com/Entries/Articles/2008/08/Introducing-SystemIOPackaging.aspx
Hey, that's a pretty nice article eric.

Check out the one I wrote at TCP:


Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

CraigLazarAuthor Commented:
Hi Emoreau,
I am having a problem with a 3rd party zipping component on a machine with 64bit hardware running Windows 2008 server. If i Use framework 3, would i have to install Framework 3(64) on the server?

Éric MoreauSenior .Net ConsultantCommented:
You will have to install the Framework 3 for sure. I haven't tried it on a Windows Server 2008.
CraigLazarAuthor Commented:
CraigLazarAuthor Commented:
Hi Guys,
Thanks allot for all the help. Emoreau, i have awarded the points to u as on ur web page i looked at DotNetZip, downloaded and tested it and its working really well on 32bit and 64bit machines with no code adjustments required.

thanks again guys for the help

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.