ShellBrowser Delphi Components Documentation
|
Moves a file or folder.
class procedure Move(const pFileName: IItemIdList; const pFolder: IItemIdList; pOptions: TOperationOptions = soDefault); overload; static;
Parameters |
Description |
const pFileName: IItemIdList |
The file or folder that should be moved. |
const pFolder: IItemIdList |
An existing folder where the specified file or folder should be moved. |
pOptions: TOperationOptions = soDefault |
Optional: The options to use. |
Exceptions |
Description |
if any passed ItemIdList is invalid or if any COM exception occured. |
The following example shows how to move a file:
var File, Folder: IItemIdList; begin File := TJamItemIdList.Create('C:file.exe'); Folder := TJamItemIdList.Create('D:'); TJamFileOperation.Move(File, Folder); end;