Phuayj
Subject: Bay6Zip : Zip utility
Since there is only an unzip utility, why not add a zip utility?

Subject: Re: Bay6Zip : Zip utility
It was my intention to add the ability to create or add to a ZIP archive. When I originally write Bay6Zip, that functionality had not be figured out yet. I just didn't have the time to add it when a method was published shortly after Bay6Zip's release. I had hoped someone would step up and attempt to add this missing other half, but no one has or they did it and didn't bring it to my attention.

Phuayj
Subject: Re: Bay6Zip : Zip utility
I thought Dennis has done it using ActiveX control? He wrote an article for the LB Newsletter not long ago.

Subject: Re: Bay6Zip : Zip utility
I based Bay6Zip on code by Doyle Whisenant. Doyle has released his code on his Website at http://www.freewebs.com/mekdesign/liberty.htm.

JohnDavidson
Subject: Re: Bay6Zip : Zip utility
Hey Brent
I've been using zlib to build distribution zips with some success.

The pathing issue is solved but I lack a really rock solid folder parser.
For zips that will contain a couple hundred files in four or five folders, no more than four deep, everythings fine.

Zipping a thousand files does take some time.

Next step is to add 'comments' to the zip file.

John

JohnDavidson
Subject: Re: Bay6Zip : Zip utility
Oops..
I forgot a link to the code.
http://www.johnshomeport.com/downloads/ztest.zip

This download was zipped by itself and a couple of folders were added for testing.

John

Subject: Re: Bay6Zip : Zip utility
Thanks for that, John! I'll take a look at it later.

JohnDavidson
Subject: Re: Bay6Zip : Zip utility
Here's a bit of an update.
The code I linked to saves the zip files with Windows file path delimiters and that will cause some pretty strange problems, sometimes.
I've fixed the code and the link above is to the fixed code.

I've also got the comments working.
I was trying to add them when the file was created and that was wrong.

I changed Doyle's original 'zip close'
Code:
    CallDll #zip, "zipClose", zipFileHwnd as long, 0 as long, err as long
to
Code:
    CallDll #zip, "zipClose", zipFileHwnd as long, comment$ as ptr,zErr as long


Where comment$ is the comments you want to display when the zip is opened.

I'm using these routines for another project but sure hope someone has the time to experiment with adding them to Bay6Zip.

My server has been rather cranky lately so if the download is not complete, download again opting to overwrite the first attempt.

John

Subject: Re: Bay6Zip : Zip utility
Okay, I think I'll start a near rewrite of Bay6Zip. I'm researching the matter now. I can't promise it will be done very quickly. I'll post updates, as they become available, in a new thread.


Page 1 of 1


Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Full Version
Powered by phpBB © phpBB Group
Design by phpBBXS.Com | Lo-Fi Mod.