Lianja
Lianja
List Files in a .zip
See more Zip Examples
How to list files within a .zipChilkat Lianja Downloads
llSuccess = .F.
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loZip = createobject("CkZip")
llSuccess = loZip.OpenZip("a.zip")
if (llSuccess = .F.) then
? loZip.LastErrorText
release loZip
return
endif
// Get the number of files and directories in the .zip
n = loZip.NumEntries
loEntry = createobject("CkZipEntry")
i = 0
do while i < n
loZip.EntryAt(i,loEntry)
if (loEntry.IsDirectory = .F.) then
// (the filename may include a path)
? loEntry.FileName
endif
i = i + 1
enddo
release loZip
release loEntry