ImageGear Professional v18.2 > API Reference Guide > TWAIN Component API Reference > TWAIN Component Objects > IGTwainCtl Control > IGTwainCtl Methods > CopyFile Method |
Copies the specified file from one directory to another. If the Recursive 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 OpenSource to select the desired Data Source, prior to calling this method.
CopyFile(SrcFileName As String, DestFileName As String,
Recursive As Boolean)
Name | Description |
---|---|
SrcFileName | The path to the source file/directory. |
DestFileName | The path to the destination file/directory. |
Recursive | Specifies whether the copying is recursive or not. |
N/A