SunQuest
           Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old April 18th, 2008, 02:51 AM
fredtheman fredtheman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 59 fredtheman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 39 m 4 sec
Reputation Power: 5
Question DLL to ZIP files and directories?

Hello

I need to find a DLL (either COM or non-COM, but I prefer the latter) for a VB5 application that can not only zip files, but also directories recursively.

Using VbAccelerator's vbzip11.dll, I can zip files, but this code doesn't work to zip a directory: Instead of zipping everything that lives in the path I give, it zips files that live in App.Path

Does someone know either why this code doesn't work as intended, or another DLL that works?

Thank you.

Reply With Quote
  #2  
Old April 18th, 2008, 12:17 PM
medialint's Avatar
medialint medialint is offline
spirit duplicator
Click here for more information.
 
Join Date: Apr 2004
Location: \\Firecrate\
Posts: 12,195 medialint User rank is General 23rd Grade (Above 100000 Reputation Level)medialint User rank is General 23rd Grade (Above 100000 Reputation Level)medialint User rank is General 23rd Grade (Above 100000 Reputation Level)medialint User rank is General 23rd Grade (Above 100000 Reputation Level)medialint User rank is General 23rd Grade (Above 100000 Reputation Level)medialint User rank is General 23rd Grade (Above 100000 Reputation Level)medialint User rank is General 23rd Grade (Above 100000 Reputation Level)medialint User rank is General 23rd Grade (Above 100000 Reputation Level)medialint User rank is General 23rd Grade (Above 100000 Reputation Level)medialint User rank is General 23rd Grade (Above 100000 Reputation Level)medialint User rank is General 23rd Grade (Above 100000 Reputation Level)medialint User rank is General 23rd Grade (Above 100000 Reputation Level)medialint User rank is General 23rd Grade (Above 100000 Reputation Level)medialint User rank is General 23rd Grade (Above 100000 Reputation Level)medialint User rank is General 23rd Grade (Above 100000 Reputation Level)medialint User rank is General 23rd Grade (Above 100000 Reputation Level)  Folding Points: 230955 Folding Title: Super Ultimate Folder - Level 1Folding Points: 230955 Folding Title: Super Ultimate Folder - Level 1Folding Points: 230955 Folding Title: Super Ultimate Folder - Level 1Folding Points: 230955 Folding Title: Super Ultimate Folder - Level 1Folding Points: 230955 Folding Title: Super Ultimate Folder - Level 1Folding Points: 230955 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Months 2 Weeks 5 Days 10 h 34 m 36 sec
Reputation Power: 2500
Quote:
but this code doesn't work


Sure doesn't I can't even get that page to load ... so no idea I'm guessing that goes specifically states App.Path or merely defaults there it should theoretically, assuming it's half-sane code, to modify it to use a variable path you pass.
__________________
medialint.com

"Energy has the opportunity to change the climate if it's done right." - Sen. John Ensign, R-Nev. (quoted out of context)

Reply With Quote
  #3  
Old April 18th, 2008, 12:42 PM
zynder's Avatar
zynder zynder is offline
Not much of a contributor
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2006
Location: Hidden
Posts: 782 zynder User rank is Brigadier General (60000 - 70000 Reputation Level)zynder User rank is Brigadier General (60000 - 70000 Reputation Level)zynder User rank is Brigadier General (60000 - 70000 Reputation Level)zynder User rank is Brigadier General (60000 - 70000 Reputation Level)zynder User rank is Brigadier General (60000 - 70000 Reputation Level)zynder User rank is Brigadier General (60000 - 70000 Reputation Level)zynder User rank is Brigadier General (60000 - 70000 Reputation Level)zynder User rank is Brigadier General (60000 - 70000 Reputation Level)zynder User rank is Brigadier General (60000 - 70000 Reputation Level)zynder User rank is Brigadier General (60000 - 70000 Reputation Level)zynder User rank is Brigadier General (60000 - 70000 Reputation Level)zynder User rank is Brigadier General (60000 - 70000 Reputation Level)zynder User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 133931 Folding Title: Super Ultimate Folder - Level 1Folding Points: 133931 Folding Title: Super Ultimate Folder - Level 1Folding Points: 133931 Folding Title: Super Ultimate Folder - Level 1Folding Points: 133931 Folding Title: Super Ultimate Folder - Level 1Folding Points: 133931 Folding Title: Super Ultimate Folder - Level 1Folding Points: 133931 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Week 2 Days 19 h 13 m 58 sec
Reputation Power: 610
Send a message via Yahoo to zynder
Your link is broken.

Anyway, here is a very good dll for zipping and unzipping directories.

How to Zip and Unzip using VB5 or VB6


Reply With Quote
  #4  
Old April 19th, 2008, 04:30 PM
fredtheman fredtheman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 59 fredtheman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 39 m 4 sec
Reputation Power: 5
Quote:
Originally Posted by zynder
Your link is broken.


Works here, though.

Quote:
Originally Posted by zynder
Anyway, here is a very good dll for zipping and unzipping directories.


Thanks, I'll check it out. AFAICT, turns out VBAccelerator's code (using vbzip11.dll, at least) ignores the BasePath property, and just starts zipping stuff that lives in App.Path, which means that the EXE must be put where data are located. Not good.

Code:
Private m_cZip As cZip
[...]
Set m_cZip = New cZip

With m_cZip
   .ZipFile = "backup.zip"
   .ClearFileSpecs
   
   'Ignored
   .BasePath = "C:\test_vb\"
   .BasePath = "C:\test_vb"
   '.BasePath = App.Path
   
   .AddFileSpec ("*.*")
    .StoreFolderNames = True
    .RecurseSubDirs = True
    .Zip
End With

Set m_cZip = Nothing

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > DLL to ZIP files and directories?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway