tumblr tracker

AddFolderToZipArchive

Library Reference ›› Zip ››
Parent Previous Next

Zip.AddFolderToZipArchive


Namespace: Zip


Adds a new folder with all files and subfolders to a previously opened Zip Archive.


retval = Zip.AddFolderToZipArchive(ZipArchive, FolderPathToAdd)


Parameters:

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

- FolderPathToAdd; path to the folder to add to the Zip archive; must be a valid path to an existing folder.


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);