Difference between revisions of "TFile.Move"
(Created page with " '''''function Move(const Source, Destination: string): Boolean''''' Source: a path to a file to move Destination: a path to a file that should be created Result: Whenev...") |
(No difference)
|
Latest revision as of 15:17, 26 July 2013
function Move(const Source, Destination: string): Boolean Source: a path to a file to move Destination: a path to a file that should be created Result: Whenever move operation was successful or not
Description
This function moves Source file to Destination path. If either Source path or Destination path is out of script's sandbox, EAccessViolation exception is thrown.
Example
begin
try
File.Move('soldat.ini.bak', 'soldat.ini');
except
WriteLn('access to soldat.ini denied');
end;
end;