ShellBrowser Delphi Components Documentation
|
Perform file operations.
TJamFileOperation = class(TComponent);
If multiple operations are started asynchronous they are added to the progress dialog window.
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 Execute method. To perform a single operation first specify the requested operation by setting Operation and use SourceFiles to add files or folders. After that specify a destination by setting Destination and call Execute.
The following sample shows how to copy a single file to the root of drive D:</c>:
JamFileOperation.Operation := otCopy;
JamFileOperation.SourceFiles.Add('C:\Windows\explorer.exe'); // You may add more of this line or use AddStrings()
JamFileOperation.Destination := 'D:\';
JamFileOperation.Execute();
The same can also be done in a simplier way:
TJamFileOperation.Copy('C:\Windows\explorer.exe', 'D:');
In this case the operation is also performed on a background thread where the dialog is not modal.
|
Name |
Description |
|
Constructor for creating a TJamFileOperation instance. | |
|
Destructor for destroying a TJamFileOperation instance. |
|
Name |
Description |
|
Copies a file or folder. | |
|
Copies files or folders. | |
|
Copies a file or folder. | |
|
Deletes a file or folder. | |
|
Deletes files or folders. | |
|
Deletes a file or folder. | |
|
Performs the requested operation. | |
|
Performs the requested operation. | |
|
Moves a file or folder. | |
|
Moves files or folders. | |
|
Moves a file or folder. | |
|
Creates a new file. | |
|
Creates a new file. | |
|
Creates a new folder. | |
|
Creates a new folder. | |
|
Renames a file or folder. | |
|
Renames files or folders. | |
|
Renames a file or folder. | |
|
Sets properties of files. | |
|
Sets properties of files. | |
|
Sets properties of files. | |
|
Sets a property of a file. | |
|
Sets a property of files. | |
|
Sets a property of a file. | |
|
Extracts files from a ZIP file to an existing directory. | |
|
Extracts files from a ZIP file to an existing directory. | |
|
Appends a file or folder to a ZIP file. | |
|
Appends files to a ZIP file. | |
|
Appends a file or folder to a ZIP file. |
|
Name |
Description |
|
Destination determines the destination folder for the file operation. | |
|
Destination determines the destination folder for the file operation. | |
|
Last error code of Execute. | |
|
Gets or sets the operation that should be performed. | |
|
Check if the user has canceled the operation. | |
|
Gets or sets the options. | |
|
The properties of TJamFileOperation.SourceFiles that should be changed. | |
|
Raise exceptions in Execute or just store error in LastErrorCode. | |
|
List of the selected files or directories. | |
|
The current version of the ShellBrowser components. |