ImageGear23.Twain Assembly > ImageGear.TWAIN Namespace > ImGearTWAIN Class : CopyFile Method |
'Declaration Public Sub CopyFile( _ ByVal sourceFileName As String, _ ByVal destinationFileName As String, _ ByVal recursive As Boolean _ )
'Usage Dim instance As ImGearTWAIN Dim sourceFileName As String Dim destinationFileName As String Dim recursive As Boolean instance.CopyFile(sourceFileName, destinationFileName, recursive)
public void CopyFile( string sourceFileName, string destinationFileName, bool recursive )
public: void CopyFile( string* sourceFileName, string* destinationFileName, bool recursive )
public: void CopyFile( String^ sourceFileName, String^ destinationFileName, bool recursive )
Recursive
flag is true
and the file type specified is ImGearFileType.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.