ShellBrowser Delphi Components Documentation
|
Copies a file or folder.
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:');