fileoperations Operation property
Return to Introduction  Previous page  Next page
Applies to
dcFileOperations component.  

Declaration
type  
  TdcFileOperationsType = (foCopy, foDelete, foMove, foRename);  
 
property Operation: TdcFileOperationsType;  

Description
The Operation property specifies which operation to perform when you call Execute method.  
 
The Operation can be one of the following values:  
ValueMeaning  
foCopyCopies the files specified by FileList to the location specified by DestFolder.  
foDeleteDeletes the files specified by FileList (DestFolder is ignored).  
foMoveMoves the files specified by FileList to the location specified by DestFolder.  
foRenameRenames the files specified by FileList (new names should be separated from old by "=" sign).  
 
tip Use Copy, Move, Rename and Delete methods instead of Execute if you don't want to specify operation type in this property.  

See also
Execute, Copy, Move, Rename and Delete methods;  
FileList and DestFolder properties.