tumblr tracker

CompressSingleFolder

Library Reference ›› Zip ››
Parent Previous Next

Zip.CompressSingleFolder


Namespace: Zip


Creates a new zipped version of a folder. If you need to compress only one folder and all of it files and subfolders, this is the easiest way. If more than one folder need to be added to the Zip archive, see the CreateZipArchive function.


retval = Zip.CompressSingleFolder(FolderPathToCompress, ZipFilePath)


Parameters:

- FolderPathToCompress; path to the folder to compress; must be a valid path to an existing folder.

- ZipFilePath; path to the newly created zip archive; must be a valid path.


Returns:

True or false; boolean value.


Example


Zip.CompressSingleFolder("C:\TEMP\Test1", "C:\TEMP\Test1.zip");