|
Example |
|
| dcFileOperations component.
|
| function Rename: Boolean; // returns True if succeed
|
| The Rename method renames the file(s) and/or folder(s) described in the FileList property. The new names should be described in the FileList as well, and separated from original names by "=" sign. The items of the FileList should have following format:
|
|
|
| path\OldName=samepath\NewName
|
|
|
|
|
| FileList.Clear;
|
| // long filenames must be in quotes (")
|
| FileList.Add('"C:\My Files\doc.txt"="C:\My Files\mydoc.doc"');
|
| FileList.Add('"C:\folder"="C:\my folder"');
|
| Execute, Copy, Move, and Delete methods.
|