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

    The DeleteZippedFiles property determines whether the library will delete the files that have been zipped as a result of a successful call to the Zip method.

    When the DeleteZippedFiles property is set to False (the default value), files that have been zipped will not be deleted. When the DeleteZippedFiles property is set to True, if no errors occur while creating the zip file or updating an existing zip file, then the library will test the zip file (it automatically calls the TestZipFile method internally, with the compressed data checking enabled) and if the zip file passes the integrity test, the files that were zipped are deleted. The testing phase helps ensure that files are never lost due to unforeseen system behavior.

    Each file deleted as a result of setting this property to True will cause the DeletingFile event to be triggered. During the DeleteFile event, your application has the opportunity to review each file's specifications (time stamps, sizes and attributes) and to decide whether or not that particular file should be deleted or not.

    During the test phase, the same events are triggered as when running the TestZipFile method.

    Data type

    Boolean

    Default value

    False

    Declaration (DLL API)  
    BOOL XzGetDeleteZippedFiles( HXCEEDZIP hZip );
    void XzSetDeleteZippedFiles( HXCEEDZIP hZip, BOOL bValue );

    Applicable methods

    Zip

    Related topics

    None