Method to zip a file or a folder (including subfolders) to an zip file.
Namespace: Crestron.SimplSharpAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic static CrestronZIPResultCode Zip(
string zipFilePath,
string sourcePath
)
Parameters
- zipFilePath String
- The path to the zip file to zip to.
If NULL or empty, the path is built from the name of the source file or folder with .zip extension appended.
- sourcePath String
- The path to the source file or folder to zip.
Return Value
CrestronZIPResultCodeResult code indicating error or success
Version Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also