Jump to content

Recommended Posts

Posted

As promised, here is my zip-from-scratch udf. It is not at all a substitute for any of the other functional udf's, but merely a good base if doing it from scratch yourself. I have used this code myself s part of a steganographic example with ooXML documents (but excluded from this udf), and it is very nice when you have such control over a zip file without being dependant on external libraries.

The code will currently only generate three global 2-dimensional arrays;

1. The local file headers.
2. The central directory headers.
3. The central directory end.

The data descriptor, which is rarely used, is not included. However, I believe most fields are included in the arrays.

When working with the zip content, it is advisable to use Ward's machine code udf's for zlib and crc32 (compression and checksum). It works fine on both x86 and x64.

If you wonder what the heck you would need this for, then you probably don't need it, so move on.

Anyways, apoligies for the weird coding style and variable names. I doubt that I will have time to expand on this udf, which is the reason I share it incase others feel like.

Link to some documentation; http://en.wikipedia.org/wiki/Zip_(file_format) and http://www.pkware.com/documents/casestudies/APPNOTE.TXT

Joakim

ZIP_STRUCTS.au3

Posted

  On 12/13/2011 at 8:52 AM, 'joakim said:

Anyways, apoligies for the weird coding style and variable names.

Joakim

No need to apologies, it helps to a better understanding !

Nice work. :)

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Posted

That count does seem amazing.

Thanks for sharing!

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

  Reveal hidden contents

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Posted (edited)

Ya.. At this time the thread shows its been viewed 209 times. Not sure how the downloads could even possibly get up to 6600. Good post about Zip though :)

Edited by Beege
  • 2 years later...
Posted

Hello
An interesting piece of code.
Are there any chances of continuation?

Best regards

mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

It's a shame.
It's hard.

But thanks for the earlier effort.

mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...