Xceed Zip for COM/ActiveX on x86/x64 Documentation
Xceed Zip control reference / Xceed Zip control properties / UnzipToFolder property
In This Topic
    UnzipToFolder property
    In This Topic

    Description

    The UnzipToFolder property is used by the Unzip method to determine where to unzip files to.

    You can specify an absolute path, a relative path, or you can leave the UnzipToFolder property empty. If left empty, files will be unzipped into the application's current directory. If a relative path is used, the path must be relative to the application's current directory.

    As described in the brief introduction to the zip format topic, files that are stored in a zip file can contain path information. This path information is always appended to the path indicated in the UnzipToFolder property unless the PreservePaths property has been set to False. In other words, if a file is stored in the zip file with a path and filename of "pictures\picture1.bmp", and the UnzipToFolder property is set to "c:\incoming", then Xceed Zip will create a folder called "pictures" and unzip the file as "c:\incoming\pictures\picture1.bmp". If PreservePaths is set to False, then Xceed Zip will unzip the file as "c:\incoming\picture1.bmp".

    The UnzipToFolder property requires a path only (no filename) and does not require a trailing backslash.

    Data type

    String

    Default value

    Empty

    Declaration (DLL API)  

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

    void XzSetUnzipToFolder( HXCEEDZIP hZip, const TCHAR* pszValue )

    Remarks

    The Unzip method will automatically create any folders that don't already exist in order to be able to unzip into the folder specified in the UnzipToFolder property.

    Applicable methods

    Unzip