Copies one or more files from one location to another.
|
---|
object.CopyFile ( source, destination[, overwrite] ) |
Arguments
- object
Required. The object is always the name of a FileSystemObject.
- source
Required. Character string file specification, which can include wildcard characters, for one or more files to be copied.
- destination
Required. Character string destination where the file or files from source are to be copied. Wildcard characters are not allowed.
- overwrite
Optional. Boolean value that indicates if existing files are to be overwritten. If true, files are overwritten; if false, they are not. The default is true. Note that CopyFile will fail if destination has the read-only attribute set, regardless of the value of overwrite.
Remarks
See Also