We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

VB.net Zip a file

Medium Priority
367 Views
Last Modified: 2012-05-07
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.
Comment
Watch Question

Senior .Net Consultant
CERTIFIED EXPERT
Top Expert 2016
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Top Expert 2007

Commented:
Hey, that's a pretty nice article eric.

Check out the one I wrote at TCP:

    http://www.codeproject.com/KB/vb/ZipDemo.aspx

Author

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?

thanks
Éric MoreauSenior .Net Consultant
CERTIFIED EXPERT
Top Expert 2016

Commented:
You will have to install the Framework 3 for sure. I haven't tried it on a Windows Server 2008.

Author

Commented:
thanks

Author

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

cheers
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.