Files.Move |
Top Previous Next |
Syntax function Files.Move(Source: string; Dest: string): boolean
Alternative Names
Description Moves a file identified by Source to a new location or file-name Dest. Both values can include path or drive information. If no path information is included, the current working directory is assumed.
Returns FALSE on failure, you can use Shell.GetLastError for more information.
See also
Example execute udsblock as begin Files.Move('c:\temp\testfile.txt', 'c:\data\testfile.txt');
if Files.FileExists('c:\data\testfile.txt') then GUI.ShowMessage('Move successful.'); else GUI.ShowMessage('Move failed.'); end |