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

ASP
ASP Drive
ASP File
ASP Folder
ASP Dictionary
ASP ADO
ASP AdRotator
ASP BrowserCap
ASP Content Linking
ASP Content Rotator
ASP Quick Ref
ASP 摘要
ASP 实例

ASP CopyFile 方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 410 ::
收藏到网摘: 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

登陆 | 还没注册?