View previous topic :: View next topic |
Author |
Message |
Phuayj Guest
|
Posted: Jul 7th, 2005, 9:56am Post subject: Bay6Zip : Zip utility |
|
|
Since there is only an unzip utility, why not add a zip utility? |
|
Back to top |
|
 |
Brent Site Admin
Joined: 01 Jul 2005 Posts: 793
|
Posted: Jul 8th, 2005, 8:32am Post 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. _________________ Brent |
|
Back to top |
|
 |
Phuayj Guest
|
Posted: Jul 8th, 2005, 12:16pm Post 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. |
|
Back to top |
|
 |
Brent Site Admin
Joined: 01 Jul 2005 Posts: 793
|
Posted: Jul 8th, 2005, 7:17pm Post 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. _________________ Brent |
|
Back to top |
|
 |
JohnDavidson Guest
|
Posted: Mar 1st, 2006, 4:04pm Post 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 |
|
Back to top |
|
 |
JohnDavidson Guest
|
Posted: Mar 1st, 2006, 10:10pm Post 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 |
|
Back to top |
|
 |
Brent Site Admin
Joined: 01 Jul 2005 Posts: 793
|
Posted: Mar 1st, 2006, 10:20pm Post subject: Re: Bay6Zip : Zip utility |
|
|
Thanks for that, John! I'll take a look at it later. _________________ Brent |
|
Back to top |
|
 |
JohnDavidson Guest
|
Posted: Mar 3rd, 2006, 9:36pm Post 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 |
|
Back to top |
|
 |
Brent Site Admin
Joined: 01 Jul 2005 Posts: 793
|
Posted: Mar 8th, 2006, 10:47am Post 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. _________________ Brent |
|
Back to top |
|
 |
|