Move or rename file or folder
movefile moves
the file or folder sourcesource to the current folder. movefile does
not preserve the archive attribute of source.
movefile
moves source destinationsource to the file or folder
destination. If source and
destination are in the same location, then
movefile renames source to
destination. To rename a file or folder when moving it,
make destination a different name from
source and specify only one file or folder for
source.
If source is a folder, then destination must be a
folder. If source is a folder or is capable of specifying
multiple files and destination does not exist, then
movefile creates
destination.
movefile
performs the move, even when source destination fdestination is not writable.
The state of the read/write attribute for destination does
not change.
moves the
specified file or folder and returns a status of status = movefile(___)1 if the
operation is successful. Otherwise, movefile returns
0. You can use this syntax with any of the input argument
combinations in the previous syntaxes.