![]() |
VOOZH | about |
The ASP Copy Method is used to copying one specified file or folder from one place to another place. The overwrite attribute can be specified to prevent or allow the overwriting of files during the copy operation.
Syntax:
For File Object:
FileObject.Copy(destination, overwrite)
For Folder Object:
FolderObject.Copy(destination, overwrite)
Parameters: This method has two parameters as mentioned above and discussed below:
The below examples demonstrate the ASP Copy Method.
Example 1: The below code demonstrates the ASP File.Copy Method.
Output:
Original File Content: This is a GeeksforGeeks example File is Copied! Copied File Content: This is a GeeksforGeeks example
Example 2: The below code demonstrates the ASP Folder.Copy Method.
Output:
Folder is Copied! Folder successfully accessed