7.15.2 Copy Method

Copies a specified file from one location to another.
Syntax
object.Copy( destination[, overwrite] );
Arguments
- object
- The name of a File object. Required.
- destination
- The destination where the file is to be copied. Wildcard characters are not allowed. Required.
- overwrite
- A Boolean value that is True (default) if existing files are to be overwritten; False if they are not. Optional.
Remarks
The results of the Copy method on a File are identical to operations performed using CopyFile where the file referred to by object is passed as an argument. You should note, however, that the alternative method is capable of copying multiple files.
Copyright © 2000 Chili!Soft
|