当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP CopyFile 方法

ASP
ASP 介绍
ASP Install
ASP 语法
ASP 变量
ASP Procedures
ASP Forms
ASP Cookies
ASP Session
ASP Application
ASP #include
ASP Global.asa
ASP Send e-mail
ASP Response
ASP Request
ASP Application
ASP Session
ASP Server
ASP Error
ASP FileSystem
ASP TextStream

ASP CopyFile 方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 409 ::
收藏到网摘: n/a

The CopyFile method copies one or more files from one location to another.
ASP CopyFile的作用是将一个或多个文件从一个地址复制到另外一个地址。

Syntax
语法

FileSystemObject.CopyFile source,destination[,overwrite]

Parameter参数 Description描述
source Required. The file or files to copy (wildcards can be used}
必要参数。指明要复制的文件(可以使用通配符)
destination Required. Where to copy the file or files (wildcards cannot be used}
必要参数。指明文件复制的具体位置(不可以使用通配符)
overwrite

Optional. A Boolean value that specifies whether an existing file can be overwritten. True allows existing files to be overwritten and False prevents existing files from being overwritten. Default is True
可选组件。它是一个逻辑值,用于设定是否拥有覆盖现存文件的权限。如果值为“true真”,则可以覆盖现存文件;如果是“false假”,则不可以覆盖。默认时为:true真。

Example
举例

<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
fs.CopyFile "c:mydocumentsweb*.htm","c:webpages"
set fs=nothing
%>

评论 (0) All

登陆 | 还没注册?