Xceed Zip for COM/ActiveX on x86/x64 Documentation
Self-Extractor Module reference / Self-Extractor Module methods / SfxAddFileToCopy method
In This Topic
    SfxAddFileToCopy method
    In This Topic

    Description

    The SfxAddFileToCopy method adds an item to the SfxFilesToCopy property's list of files to copy from one location to another after after files have been extracted.

    SfxAddFileToCopy automatically creates a string of the appropriate format for the SfxFilesToCopy property and handles separating items with the CR+LF characters. In fact, it performs the same work as the following line of VB code:

    XceedZip1.SfxFileToCopy = XceedZip1.SfxFileToCopy + sSource + "|" + sDestination + Chr(13) + Chr(10)

    Declaration (ActiveX)  
    Method SfxAddFileToCopy(sSource As String, sDestination As String)
    Declaration (DLL API)  
    void XzSfxAddFileToCopy(HXCEEDZIP hZip, const TCHAR* pwszSource, const TCHAR* pwszDestination);

    Parameters

    Parameter Description
    sSource  The path and filename of the file to copy. You can use macros.
    sDestination  The path and filename of the file's destination. You can use macros.

    Return values

    None

    Remarks

    If the folder specified by the sDestination parameter does not exist, the files will not be copied and no error will be displayed.

    Applicable properties

    SfxFilesToCopy