Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Zipping in XE7: TZipFile


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 3 - Last Post: Nov 5, 2014 10:52 AM Last Post By: david hoke Threads: [ Previous | Next ]
Chris Johnson

Posts: 12
Registered: 6/30/06
Zipping in XE7: TZipFile  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 4, 2014 7:34 AM
Hello all,

For the past few years, I have used Kevin Boylan's VCLZip component in Builder 2010 to zip a number of files into a .zip file. Now I have moved to Builder XE7, and have a couple of questions:

1) I believe that VCLZip is no longer developed, but is there any way to continue to use it ?

2) Assuming not, then do I use TZipFile in XE7 ? If so, how do I specify wildcards for the files I want zipping, and how to I exclude certain files from being zipped ? I can't see how to do either of these things that were easy in VCLZip.

Thanks in advance for any help you can give me.

Chris Johnson
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Zipping in XE7: TZipFile  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 4, 2014 11:13 AM   in response to: Chris Johnson in response to: Chris Johnson
Chris wrote:

1) I believe that VCLZip is no longer developed, but is there any
way to continue to use it ?

I can't answer that. I use ZipForge myself:

http://www.componentace.com/zip_component_zip_delphi_zipforge.htm

2) Assuming not, then do I use TZipFile in XE7 ?

You could, if it suits your needs. In this case, I don't think it will,
though.

If so, how do I specify wildcards for the files I want zipping

TZipFile does not support that.

how to I exclude certain files from being zipped ?

Since you can't specify a wildcard, this option is not relevant. TZipFile.Add()
takes a single filename as input, so you would just specify the individual
files you want and skip the ones you do not want.

--
Remy Lebeau (TeamB)
Chris Johnson

Posts: 12
Registered: 6/30/06
Re: Zipping in XE7: TZipFile  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 5, 2014 3:09 AM   in response to: Chris Johnson in response to: Chris Johnson
Thanks, Remy.

I'm surprised that TZipFile doesn't support wildcards as I would have thought it common to want to zip-up all the files of a specific type in a folder, or to omit certain types of file. Certainly, that is what we want to do.

But I'll try ZipForge - thanks for your suggestion.

Chris
david hoke

Posts: 616
Registered: 2/9/07
Re: Zipping in XE7: TZipFile  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 5, 2014 10:52 AM   in response to: Chris Johnson in response to: Chris Johnson
also possibly worth reviewing content of...

<Chris Johnson> wrote in message news:700842 at forums dot embarcadero dot com...
Thanks, Remy.

I'm surprised that TZipFile doesn't support wildcards as I would have
thought it common to want to zip-up all the files of a specific type in a
folder, or to omit certain types of file. Certainly, that is what we want
to do.

But I'll try ZipForge - thanks for your suggestion.

Chris

http://embarcadero.newsgroups.archived.at/public.delphi.vcl.components.using/201201/1201148733.html
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02