move

Moves the source file to the named destination file. This command also gives the action author the ability to rename a file. An action script with the move command terminates if the destination already exists, if the source file doesn't exist, or if the move fails for any other reason.

Syntax

move <Source_FileName> <Destination_FileName>

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

Examples

move "c:\program files\bigsoftware\module.dll" "c:\temp\mod.dll"

This command moves and renames the mod.dll file. Note that quotes are necessary for file names and folder names with spaces in them.

delete "c:\updates\q312456.exe"
move "__Download\q312456.exe" "c:\updates\q312456.exe"

The command lines above first delete the file, then move it back in place from another location.

Version 5.1 and above