LocalCopyFile <file>, <dest>
Copy a file on the local file system from the current directory or full path 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: LocalMoveFile, ForEach
Examples:
LocalCopyFile "sales.dat", "Z:\backups"
LocalCopyFile "sales.dat", "Z:\backups\sales.bak"
ForEach local "*.txt" do "LocalCopyFile '$file', 'Z:\backups\$file'")
← Back to Script Commands