Solved

VB.net Zip a file

Posted on 2009-07-09
7
331 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.
0
Comment
Question by:CraigLazar
7 Comments
 
LVL 21

Expert Comment

by:Tapan Pattanaik
ID: 24820571
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 24821629
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
0
 
LVL 27

Expert Comment

by:VBRocks
ID: 24823839
Hey, that's a pretty nice article eric.

Check out the one I wrote at TCP:

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

0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 4

Author Comment

by:CraigLazar
ID: 24825178
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
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 24827020
You will have to install the Framework 3 for sure. I haven't tried it on a Windows Server 2008.
0
 
LVL 4

Author Closing Comment

by:CraigLazar
ID: 31601950
thanks
0
 
LVL 4

Author Comment

by:CraigLazar
ID: 24840439
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
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now