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

    Description

    The BasePath property allows you to specify the starting path for all entries in the FilesToProcess and FilesToExclude properties that have been specified using relative paths.

    If the BasePath property is left empty, relative paths specified in the FilesToProcess and FilesToExclude properties will be relative to the application's current directory, which is not recommended.

    This property is particularly useful for controlling how paths are stored in the zip file.

    Data type

    String

    Default value

    Empty

    Declaration (DLL API)  

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

    void XzSetBasePath( HXCEEDZIP hZip, const TCHAR* pszValue )

    Applicable methods

    Zip

    Related topics

    If you want more control over how path and/or file names are stored in the zip file, you can use the ZipPreprocessingFile event to change stored path and filenames to whatever you want.

    If you don't want any path information to be stored in the zip file, you can use the PreservePaths property.