ASP Copy
Method
The Copy method can copy the 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 FileSystemObject.CopyFile or FileSystemObject.CopyFolder. In FileSystemObject.CopyFile or FileSystemObject.CopyFolder, the object reference to the file or folder is used, and the file or folder is passed as a parameter 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 the copied 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. |