ImageGear .NET
CopyFile Method




The path to the source file/directory.
The path to the destination file/directory.
Specifies whether the copying is recursive or not.
This method copies the specified file from one directory to another.
Syntax
'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
) 

Parameters

sourceFileName
The path to the source file/directory.
destinationFileName
The path to the destination file/directory.
recursive
Specifies whether the copying is recursive or not.
Remarks
If the 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.

See Also

Reference

ImGearTWAIN Class
ImGearTWAIN Members

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback