Solved

VB.net Zip a file

Posted on 2009-07-09
7
329 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 69

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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
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 69

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 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

22 Experts available now in Live!

Get 1:1 Help Now