Xceed Zip Compression Library Documentation
ZipFilename property
Xceed Zip control reference > Xceed Zip control properties > ZipFilename property

Description

The ZipFilename property must specify the zip file to be used by the Xceed Zip component's methods.

You can specify the zip file name using an absolute path , a relative path , or no path at all. If no path is provided, the zip file will be created or searched for in the application's current directory . If a relative path and filename are used, the path must be relative to the application's current directory.

The zip file name can be any valid filename with any extension. The ".zip" filename extension is recommended because it makes the file easily identifiable as a zip file.

Examples of valid ZipFilename property settings are: "c:\outgoing\pictures.zip", "..\My Zip File.zip", "backup.dat", "\\MainServer\PublicShare\Data Files\backup 1491.zip" and "test".

Data type

String

Default value

Empty

Declaration (DLL API)  

UINT XzGetZipFilename( HXCEEDZIP hZip, TCHAR* pszBuffer, UINT uMaxLength )

void XzSetZipFilename( HXCEEDZIP hZip, const TCHAR* pszValue )

Remarks

If this property is left empty, Xceed Zip methods will return the xerOpenZipFile error.

The length of the zip filename must not exceed 260 characters (MAX_PATH).

Applicable methods

All methods except AddFilesToProcess and AddFilesToExclude