Xceed Zip for COM/ActiveX on x86/x64 Documentation
Xceed Zip control reference / Xceed Zip control events / MovingTempFile event
In This Topic
    MovingTempFile event
    In This Topic

    Description

    The MovingTempFile event is triggered before moving the temp file to the destination zip file.

    The MovingTempFile event provides a way to specify how a temporary zip file is going to be moved to its final destination.

    Declaration  

    Event MovingTempFile( xAction As xcdMoveTempFileAction, sTempFilename As String, sActualFilename as String )

    Declaration (DLL API)  
    xcdMovingTempFileParams * pParams = ( xcdMovingTempFileParams * ) lParam;

    Parameters

    Parameter Modifiable Description
    xAction YES

    Set it to xmaAutomatic to let the library move the temp file. This is the default behavior and should be used unless you're experiencing problems in particular situations like target destinations on a unreliable network connection.

    Set it to xmaManual to let the event handler move the temp file. Using this value means that the library will not move the temp file itself. The library will not check for success or failure of the file operation. The event handler may implement any algorithm to move the temp file to its final destination. The event handler must also delete the temp file. When the event handler returns control to the library, the library assumes moving the temp file is completed.

    Set it to xmaAbort to abort the operation. The library will assume the move operation failed and return a xerMoveTempFile error code. The library will not perform any action on the temp file.

    sTempFilename NO The temp file's path and filename.
    sActualFilename NO The file's final path and filename.

    Applicable methods

    Zip, Convert, RemoveFiles, UpdateZipDate

    See Also