ShellBrowser Delphi Edition Documentation
ContentsIndexHome
PreviousUpNext
TJamFileOperation Class

Component for file operations.

TJamFileOperationTJamFileOperation
Syntax
Pascal
TJamFileOperation = class(TJamBaseComponent);

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::

JamFileOperation.Operation := otCopy; JamFileOperation.SourceFiles.Add(aFilePath); // You may add more of this line or use AddStrings() JamFileOperation.Destination := 'D:'; JamFileOperation.Execute();
 
Name 
Description 
 
This is Create, a member of class TJamBaseComponent. 
 
This is Destroy, a member of class TJamBaseComponent. 
TJamFileOperation Class
 
Name 
Description 
 
Creates an instances of a TJamFileOperation component  
 
Destroys an instance of a TJamFileOperation component  
TJamFileOperation Class
 
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 
 
Indicates whether the component is enabled or not. 
 
Returns the version of the ShellBrowser components. 
TJamFileOperation Class
 
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. 
Copyright (c) 2011. All rights reserved.