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