Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB.net Zip a file

Posted on 2009-07-09
7
Medium Priority
?
343 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 2000 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

877 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