ASP Copy
Method
The Copy
method can copy a specified file or folder from one location to another.
Note: The result of applying the Copy
method to a File or Folder is identical to the operations performed by using FileSystemObject.CopyFile
or FileSystemObject.CopyFolder
. In FileSystemObject.CopyFile
or FileSystemObject.CopyFolder
, the object references the file or folder and passes them as parameters to FileSystemObject.CopyFile
or FileSystemObject.CopyFolder
. However, it should be noted that the FileSystemObject.CopyFile
or FileSystemObject.CopyFolder
methods can copy multiple files or folders.
Syntax
Parameter | Description |
---|---|
destination | Required. The destination for copying the file or folder. Wildcards are not allowed. |
overwrite | Optional. A Boolean value indicating whether existing files or folders can be overwritten. True means the file/folder can be overwritten, false means it cannot. The default is true. |