tumblr tracker

FinalizeZipArchive

Library Reference ›› Zip ››
Parent Previous Next

Zip.FinalizeZipArchive


Namespace: Zip


Finishes the writing to the Zip Archive and closes the file.


retval = Zip.FinalizeZipArchive(ZipArchive)


Parameters:

- ZipArchive; Zip Archive handle, previously opened by a call to CreateZipArchive


Returns:

True or false; boolean value.


Example


$ZipArchive = Zip.CreateZipArchive("C:\TEMP\NewZip.zip");

Zip.AddFolderToZipArchive($ZipArchive, "C:\TEMP\Test1");
Zip.AddFileToZipArchive($ZipArchive, "C:\TEMP\Test.exe");

Zip.FinalizeZipArchive($ZipArchive);