copy

Copies the source file to the named destination file. An action script with the copy command terminates if the destination already exists or if the copy fails for any other reason (such as when the destination file is busy).

Syntax

copy <Source_FileName> <Destination_FileName>

Where Source_Filename and Destination_Filename are the names of the files to copy from and to respectively (typically enclosed in quotes).

Examples

copy "{name of drive of windows folder}\win.com" "{name of drive of 
   windows folder}\bigsoftware\win.com"

This command copies the win.com file to the bigsoftware folder.

delete "c:\windows\system\windir.dll"
copy " __Download\windir.dll" "c:\windows\system\windir.dll"

This pair of action Shell Commands deletes the target file (if it exists) before it performs the copy action.

Version 5.1 and above