A brief introduction to the copyfile method in ASP

Y2J
Release: 2017-05-19 11:01:43
Original
1822 people have browsed it

Definition and Usage

CopyFile method copies one or more files from one location to another.

Syntax:

FileSystemObject.CopyFile source,destination[,overwrite]
Copy after login

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
%>
Copy after login

【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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!