PBZip Beta
-
- Enthusiast
- Posts: 103
- Joined: Fri Apr 25, 2003 4:00 pm
- Location: France
what about a function that you pass a structure to, and that fills it in with the file details?Num3 wrote:I guess that is the best method to retrieve a list, but you could include extra info on the command...
Something like:
ZipGetFile(filenumber[,flags])
where flags would be:
#Zname
#Zsize
#Zdate
#Zdir
#Zfileattr
etc...
-
- Enthusiast
- Posts: 103
- Joined: Fri Apr 25, 2003 4:00 pm
- Location: France
Hi
All is ok.
What is a "20" meaning as a file attribute ?
You could build a resident file to put the constants and structure ?
Then the user doesn't have to write it.
Thank's
Dominique.
What is a "20" meaning as a file attribute ?
You could build a resident file to put the constants and structure ?
Then the user doesn't have to write it.
Thank's
Dominique.
Dominique
Windows 10 64bits. Pure basic 32bits
Windows 10 64bits. Pure basic 32bits
I'll create a resident file for the next version
As for the fille attribute question, file attributes in a zip file are a 32bit integer used by whatever operating system the zip file was created on.
If it was created under windows, then it is the value returned by the winapi function GetFileAttributes_("filename")
I'll alter the function so that if the zip wasn't created under windows, the file attribute will be zero or -1 or something invalid.
As for the fille attribute question, file attributes in a zip file are a 32bit integer used by whatever operating system the zip file was created on.
If it was created under windows, then it is the value returned by the winapi function GetFileAttributes_("filename")
I'll alter the function so that if the zip wasn't created under windows, the file attribute will be zero or -1 or something invalid.
PBZip 0.04
New version available, check the readme and examples.
There will be a better help file for it once I'm happy with how it all works.
Includes a PBZip.res file now
and it's a lot more stable.
Here's a list of functions available in this version...
ZipSetProgressCallback
ZipOpen
ZipClose
ZipGetFileName
ZipExtractFile
ZipFindFile
ZipExtractFileName
ZipGetFileInfo
There will be a better help file for it once I'm happy with how it all works.
Includes a PBZip.res file now

Here's a list of functions available in this version...
ZipSetProgressCallback
ZipOpen
ZipClose
ZipGetFileName
ZipExtractFile
ZipFindFile
ZipExtractFileName
ZipGetFileInfo
Thanks for the positive feedback! I haven't had any reports of problems so far, so I'm working on the creation of zip files now. and will hopefully have a version working in the next few days.Inner wrote:You seam to have done your homework pretty well, it's being used currently by a cd databasing software, scanning the zip for files and storing them, it's processed 10's of 1000's of zip files without problem.
Excellent work!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
PBZip 1.00 Released...
PBZip 1.00 is now released, grab it from my site.
It's a complete rewrite, should now be more compatible with most (if not all) Zip Archives.
Some of the functions have changed, and you can now Create and add files to Archives.
Happy Zipping!
It's a complete rewrite, should now be more compatible with most (if not all) Zip Archives.
Some of the functions have changed, and you can now Create and add files to Archives.
Happy Zipping!
Thanks to karbon, I now have a permanent place for my PB stuff 
So If you want to grab the new improved PBZip 1.0 head over to this URL
http://spangly.purebasic.org

So If you want to grab the new improved PBZip 1.0 head over to this URL
http://spangly.purebasic.org