Visual Basic .NET Forums  
Click here to advertise with us

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 11-13-2006, 6:52 AM
VB.NET Forum Miyagee
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jan 2006
Location: California
Age: 29
Posts: 414
Reputation: 62
ImDaFrEaK is on a distinguished programming path ahead
Default How do place files in zip folder programmitcally

That's just it. How do I place a file in a zip folder programmatically?
__________________
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
  #2 (permalink)  
Old 11-13-2006, 8:59 PM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,328
Reputation: 1315
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

A zip is really a file, not a folder, but with Windows XP it is built into the Explorer to handle these files as folders. To use this feature programmatically add first reference to COM library 'Microsoft Shell Controls And Automation'. Then use the ShellClass and CopyHere method. There are some code examples here:
- compress (existing and new zip): http://www.xtremevbtalk.com/showthread.php?t=263973
- decompress: http://www.codeproject.com/csharp/de...shellapics.asp

Else there exist a number of libraries (free or pay) to handle compressed archives like zips.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-13-2006, 9:34 PM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,328
Reputation: 1315
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

Speaking of which, the not unknown free library SharpZipLib updated to version 0.85 just the other day and now supports adding files to existing ZipFile.
__________________
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 1:14 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.