Macro Scheduler 15




Moves the file (or files), sourcepath, to the file (or files) destinationpath.


sourcepath, and destinationpath may be variables.  Wildcards can be used.


By default if destinationpath already exists it will not be overwritten and the new file will be renamed appropriately.  It is possible to change the behaviour to overwrite instead by setting CF_OVERWRITE to 1.  The default value of CF_OVERWRITE is 0.


To make MoveFile perform a simple Rename function, rather than physically moving the entire file, set MF_RENAME to 1.


The outcome of the operation will be reported in variables CF_RESULT and CF_RESULT_CODE.  If the operation was aborted or could not proceed CF_RESULT will be False.  CF_RESULT_CODE will contain a numeric code returned by the operating system where 0 indicates success.  For details of the codes that may be returned see the SHFileOperation function documentation at


To enable operating system file operation animations set CF_ANIMATE to 1.


Abbreviation : Mov

See also: CopyFile, DeleteFile, IfFileExists, AppendFile, RenameFile






Or with variables: