LocalMoveFile <file>, <dest>
Move a file within the local file system from the current directory to a destination file or folder.
Source must be a specific file name without wildcards, but you can use the ForEach command to copy multiple files.
Destination can be a file name or a path that designates a folder that already exists.
See also: LocalCopyFile, ForEach
Examples:
LocalMoveFile "sales.dat", "Z:\backups\sales.bak"
LocalMoveFile "sales.dat", "Z:\backups"
ForEach local "*.dat" do "LocalMoveFile '$file', 'Z:\backups\$file'")
← Back to Script Commands