ShellBrowser Delphi Components Documentation
|
Moves files or folders.
class procedure Move(const pFileNames: IItemIdListCollection; const pFolder: IItemIdList; pOptions: TOperationOptions = soDefault); overload; static;
Parameters |
Description |
const pFileNames: IItemIdListCollection |
The files or folders that should be moved. |
const pFolder: IItemIdList |
An existing folder where the specified files or folders should be moved. |
pOptions: TOperationOptions = soDefault |
Optional: The options to use. |
Exceptions |
Description |
if pFileNames contains no valid ItemIdList or pFolder is invalid or if any COM exception occured. |
The following example shows how to move multiple files:
var Files: IItemIdListCollection; Folder: IItemIdList; begin Files := TItemIdListCollection.Create; Files.Add('C:file1.exe'); Files.Add('C:file2.exe'); Folder := TJamItemIdList.Create('D:'); TJamFileOperation.Move(Files, Folder); end;