Moves one or more files
FileMove ( "source", "dest" [, flag] )
Parameters
source | The source path and filename of the file to move. (* wildcards are supported) |
dest | The destination path and filename of the moved file. (* wildcards are supported) |
flag | [optional] this flag determines whether to overwrite files if they already exist: 0 = (default) do not overwrite existing files 1 = overwrite existing files |
Return Value
Success: | Returns 1. |
Failure: | Returns 0 if source cannot be moved or if dest already exists and flag=0. |
Remarks
If the source and destination paths are on different volumes a copy and delete operation is performed rather than a move.
Related
FileCopy, FileDelete, FileRecycle, DirMove
Example
FileMove("C:\foo.au3", "D:\mydir\bak.au3")