Home  >  Article  >  Backend Development  >  A brief introduction to the copyfile method in ASP

A brief introduction to the copyfile method in ASP

Y2J
Y2JOriginal
2017-05-19 11:01:431777browse

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】

ASP free video tutorial

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn