IZipFile.CompressFilesToZip Method

Compresses the specified file or files into the specified new ZIP archive.
Sub CompressFilesToZip( _ 
ByVal filesToCompress As String, _ 
ByVal destinationZipArchive As String, _ 
Optional ByVal renameInsideZip As String = "", _ 
Optional ByVal password As String = "" _ 
)
This language is not supported or no code example is available.
void CompressFilesToZip( 
string filesToCompress
string destinationZipArchive
string renameInsideZip = "", 
string password = "" 
)
This language is not supported or no code example is available.

Parameters

filesToCompress
string

Required. The file or files to be compressed. You can use * and ? to specify a pattern for multiple files.

destinationZipArchive
string

Required. The ZIP file to be created.

renameInsideZip
string

Optional. If set to a non empty string, it specifies the name of the compressed file inside the ZIP archive. It has only meaning if filesToCompress specifies a single file. The default value is an empty string.

password
string

Optional. The ZIP password. The default value is an empty string.

Exception type Condition

QdvApiException

A problem occurred.

Version
 
Available since QDV 7.15.546.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition