ImageGear for C and C++ on Windows v21.0 - Updated
API Reference Guide / TWAIN Component API Reference / TWAIN Component Functions Reference / Device File System Functions / IG_TWAIN_file_copy
In This Topic
    IG_TWAIN_file_copy
    In This Topic

    This function copies the specified file from one directory to another.

    Declaration:

     
    Copy Code
    AT_ERRCOUNT ACCUAPI IG_TWAIN_file_copy(
            LPCSTR lpszDest,
            LPCSTR lpszSrc,
            AT_BOOL bRecursive
    );
    

    Arguments:

    Name Type Description
    lpszDest LPCSTR The path to the destination file/directory.
    lpszSrc LPCSTR The path to the source file/directory.
    bRecursive AT_BOOL Specifies whether the copying is recursive or not.

    Return Value:

    Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

    Supported Raster Image Formats:

    This function does not process image pixels.

    Remarks:

    If the bRecursive flag is TRUE and the file type specified is IG_TW_FY_DIRECTORY, then that directory, and all the files and directories under it, are copied. The application cannot copy files into the root directory.

    Use IG_TWAIN_source_open() to select the desired Data Source.