Visual Basic .NET Forums  

Go Back   Visual Basic .NET Forums > Components & Controls > Non-GUI

Non-GUI Discussion of non-GUI components such as compression, encryption, registration, activation, etc.

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-31-2006, 1:55 PM
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Dec 2006
Posts: 1
Reputation: 0
niit_bor is on a distinguished programming path ahead
Default Zip/Unzip Files through VB.NET 2005

Can Some one tell me how to Zip and Unzip Files through vb.net 8.0.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-31-2006, 6:32 PM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 36
Posts: 9,163
Reputation: 1079
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

You have to get hold of third party libraries that will do the job, for example sharpziplib
Unless you meant compression not related to the standard Zip file format, there is the System.IO.Compression namespace that enable you to compress/decompress stream of data for example to a file with the Gzip or Deflate method.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-01-2007, 10:36 AM
VB.NET Forum Miyagee
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jan 2006
Location: California
Age: 29
Posts: 412
Reputation: 53
ImDaFrEaK is on a distinguished programming path ahead
Default

I was able to find procedure using API calls for doing this before and if you dig long enough you'll find a way to do it yourself. I didn't make use of it after I found it so I don't have any information to give you other than I did find a solution. It was a tricky business though with some factors that I myself didn't understand. Also, here is what appears to be an article from the maker or zipsharp that explains how he accomplished zipping files with the .NET framework. He used the J# installed utilities in which he describes how to use yourself. That might help you get on the right path. In the end I would suggest just going with JohnH's idea and just using the free sharpziplib. All the code is already written and it's free.
__________________
Triple G^3 - Get Stuck on It!

The Angels will sing for me tonight.
The Holy Spirit will comfort me.
And as hard as the wind blows;
I'll be ahead of it!

Last edited by ImDaFrEaK; 01-01-2007 at 11:00 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-01-2007, 11:46 AM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 36
Posts: 9,163
Reputation: 1079
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

That's right, I forgot this also, you can use the Shell automation for zip archives too, see How do place files in zip folder programmitcally
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-01-2007, 12:32 PM
VB.NET Forum Miyagee
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jan 2006
Location: California
Age: 29
Posts: 412
Reputation: 53
ImDaFrEaK is on a distinguished programming path ahead
Default

LOL, that's a link to my first thread on trying to learn this. Looks like you were the one to point me in the same direction that I pointed him into.
__________________
Triple G^3 - Get Stuck on It!

The Angels will sing for me tonight.
The Holy Spirit will comfort me.
And as hard as the wind blows;
I'll be ahead of it!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 7:53 PM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0


For advertising opportunities click here.