CopyFile()

Syntax:

CopyFile( Source, Destination, MsgBox )

Return:

true if the specified file is copied and false if it is not.

Parameters:

Source – the full pathname of the file to be copied file. This parameter is required.

Note:
Pathnames normally contain backslashes e.g. d:\welcome.txt, all single backslashes should be entered as double backslashes i.e. d:\\welcome.txt.

Destination – filename/path of the destination. This can be

Note:
The path MUST end with a trailing '\', otherwise the last part is treated as the filename and the copy will fail because the folder with that name already exists.

Note:
If the given destination directory does not exist it will be created automatically.

MsgBox – if the destination file exists, display a warning box asking the user if they are sure they want to overwrite the file. MsgBox can be true or false. If true the warning box will appear on screen. If false, the warning box will not appear and the file will be overwritten. This parameter is optional and the default is false.

Remarks:

This function will copy a specified file to a new location on the user’s machine.

This function will only work in the full player - not the screensaver, web plug-in or Flex.

image\Script_Button.jpgExamples