Component for file operations.

TJamFileOperation is a component to perform file operations, like copy, move, rename or delete. It has to be activated like a TOpenDialog, with the call of the TJamFileOperation.Execute Method. The selected operation will be performed to the files in the property TJamFileOperation.SourceFiles. To use the component, you have to add the files, to which the operation should be performed, to the TJamFileOperation.SourceFiles property, set the TJamFileOperation.Destination path, choose the TJamFileOperation.Operation, which should be performed, and call the TJamFileOperation.Execute method.
This sample code copies a file whose file path is in the variable aFilePath to the root of drive D::
|
|
Name |
Description |
![]() |
When the Execute function fails you can access this property to get the exact Windows error code. | |
|
Check if the user has canceled the operation. | |
|
Use this function to start the operation. |
|
|
Name |
Description |
|
Destination determines the destination folder for the file operation. | |
|
Set a flag for the file operation, which should be performed. | |
|
Use different flags of the property to optimize the dialog for your work. | |
|
List of the selected files. | |
|
Changes the window title of the opendialog. |