Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making the content list of files inside a Zip ?
#9
Thank's

And if you also want to know filesize:

    Do
        Get ff, , head
        If head.signature <> Chr$(&H50) + Chr$(&H4B) + Chr$(&H03) + Chr$(&H04) Then Exit Do
        fname = Space$(head.filenameLen)
        FX$ = Space$(head.uncompressedSize)
        Get ff, , fname
        If filecount > UBound(strarr) Then ReDim _Preserve strarr(filecount) As String
        strarr(filecount) = fname + "|" + _Trim$(Str$(Len(FX$)))
        filecount = filecount + 1
        Seek ff, Seek(ff) + head.extrafieldLen + head.compressedSize
    Loop Until EOF(ff)

And the program works with *.epub files  (that was my problem; epub are zip files)
Why not yes ?
Reply


Messages In This Thread
RE: Making the content list of files inside a Zip ? - by euklides - 02-06-2024, 05:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  More info about Random Access files PhilOfPerth 28 879 02-25-2026, 01:50 PM
Last Post: ahenry3068
  Exiting sub while inside a loop PhilOfPerth 5 510 12-05-2025, 09:40 AM
Last Post: PhilOfPerth
  Embedding and Extracting MANY files ! ahenry3068 20 1,509 11-15-2025, 10:19 AM
Last Post: ahenry3068
  Erasing (or making a section of an image transparent) based on a mask from image #2? madscijr 17 2,428 04-14-2025, 09:19 PM
Last Post: madscijr
  List of file sound extensions eoredson 17 2,734 12-27-2024, 04:30 PM
Last Post: hsiangch_ong

Forum Jump:


Users browsing this thread: 1 Guest(s)