Solved

Zipping and Unzipping files & folders with VB

Posted on 2003-11-18
7
351 Views
Last Modified: 2010-04-17
I want to write a small application to backup data files for an application I have written. I need to be able to write code that will zip all the data files into a single zip which can later be unzipped (extracted) to restore the data files when necessary. I have read something about Inf-Zip, I haven't quite got around to understanding how to use the win32 DLL's.
0
Comment
Question by:Molefe
  • 2
7 Comments
 
LVL 16

Expert Comment

by:PaulCaswell
ID: 9771817
Molefe,

I would suggest you invoke/spawn some already existing tool such as PKZip/WZZip if you are running under Windows. If you really need to go for Code and have access to 'C' then a tool called CCUnzip is available as both app and 'C' source from www.programmersheaven.com. I found this particularly useful recently.

Please clarify:

1) What platform.
2) What Language.
3) Do you want the zipped files in standard form (e.g. WinZip/PKZip) or can they be proprietary?
4) What kind of files are they? mpegs and jpegs are unlikely to compress much.

Good luck.

Paul
0
 
LVL 10

Accepted Solution

by:
D_M_D earned 63 total points
ID: 9772047
Try this link...

http://www.codeguru.com/vb/articles/1854.shtml

--------
D_M_D
0
 
LVL 69

Assisted Solution

by:Éric Moreau
Éric Moreau earned 62 total points
ID: 9775829
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 10316980
splits between D_M_D and emoreau
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

911 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

20 Experts available now in Live!

Get 1:1 Help Now