Home > Article > Backend Development > A brief introduction to the copyfile method in ASP
Definition and Usage
CopyFile method copies one or more files from one location to another.
Syntax:
FileSystemObject.CopyFile source,destination[,overwrite]
Parameters Description
source Required. The file to be copied (the wildcard character can be used).
destination Required. The destination for copying files (wildcards cannot be used).
overwrite Optional. Specifies whether existing files can be overwritten. True allows existing files to be overwritten, False prevents existing files from being overwritten. Defaults to True .
Example
<% dim fs set fs=Server.CreateObject("Scripting.FileSystemObject")fs.CopyFile "c:\mydocuments\web\*.htm","c:\webpages\"set fs=nothing %>
【Related recommendations】
The above is the detailed content of A brief introduction to the copyfile method in ASP. For more information, please follow other related articles on the PHP Chinese website!