Move(Source: String; Destination: String);
Source - a file that should be moved.
Destination - a path that corresponds to a directory into which a file should be moved.
The MoveTo method moves a file into a directory, passed by the parameter Destination. If the file exists - it is overwritten.
Sub Main;
Begin
If File.Exists("c:\New_folder\1.txt") And Directory.Exists("c:\Temp") Then
File.Move("c:\New_folder\1.txt", "c:\Temp");
End If;
End Sub Main;
After executing this example, a file is moved into a directory c:\Temp.
See also: