ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
Jam.Shell.Dialogs.FileOperation.TJamFileOperation.Copy

Copies a file or folder.

Syntax
Pascal
class procedure Copy(const pFileName: string; const pFolder: string; pOptions: TOperationOptions = soDefault); overload; static;
Parameters 
Description 
const pFileName: string 
The file or folder that should be copied.  
const pFolder: string 
An existing folder where the specified file or folder should be copied.  
pOptions: TOperationOptions = soDefault 
Optional: The options to use.  
Exceptions 
Description 
EArgumentException 
if any parameter is empty.  

The following example shows how to copy a file:

  TJamFileOperation.Copy('C:file.exe', 'D:');