Copies a single file on devices like the flash disk and ROMDISK.
File.Copy ( source_file, destination_file, overwrite )
Prerequisites
None
Parameters
source_file
A required String expression. Contains the fully specified path and file name of an existing file to be copied.
destination_file
A required String expression. Contains the fully specified path and file name of the destination file.
overwrite
An optional numeric expression. If zero (False), the destination file is not overwritten if it already exists. If non-zero, the destination file is overwritten if it already exists.
Remarks
This method copies a single file stored on a device like the flash disk or ROMDISK. A wild card specification of multiple files is not permitted.
The complete path must be specified for both the source and destination. There are no defaults for any fields.
If a directory in the destination path does not exist, the directory is not created and the copy fails with an error.
Examples
File.Copy("/flash/projects/Hello/Main.gpl", _
"/flash/Test.gpl", True)
File.Copy("/flash/projects/Hello/Main.gpl", _
"/ROMDISK/Test.gpl", False)
See Also