ZIP.Create method |
|
Remarks
Creates a brand new ZIP file session.
For further details about methods for ZIP management refer to the ZIP object.
For details about using ZIP management refer to the How to manage ZIP files tutorial.
Syntax
[Visual Basic] control.ZIP.Create ( strZipFilePathname as String, nEncryptionType as enumZipEncryptionTypes, strPassword as String, bReplaceExisting as enumBoolean ) as enumErrorCodes |
[C++] short control.ZIP.Create ( LPCTSTR strZipFilePathname, short nEncryptionType, LPCTSTR strPassword, short bReplaceExisting ); |
Parameter |
Description |
||||||||||||||||||
|
|
||||||||||||||||||
strZipFilePathname |
String representing the absolute pathname of the ZIP file to open. |
||||||||||||||||||
nEncryptionType |
The type of protection/encryption to apply. Supported values are the following:
|
||||||||||||||||||
strPassword |
String containing the optional password to set for future files extraction or adding operations; leave it empty if not needed. |
||||||||||||||||||
bReplaceExisting |
Boolean value that specifies if an eventual ZIP file having the same pathname should be replaced or simply opened. Supported values are the following:
|
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred, check the LastError property value in order to get the error code |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful |