Click or drag to resize

CrestronZIPZip Method

Method to zip a file or a folder (including subfolders) to an zip file.

Namespace: Crestron.SimplSharp
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public 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

CrestronZIPResultCode
Result code indicating error or success

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also