当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO CopyRecord 与 MoveRecord

ADO
ADO DataTypes
ADO 摘要
ADO 实例

ADO CopyRecord 与 MoveRecord


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

CopyRecord
CopyRecord [复制记录]

The CopyRecord method copies a file or directory to another location.
CopyRecord的作用是:将一个文件或目录复制到其它的地址中。

MoveRecord
MoveRecord [移动记录]

The MoveRecord method moves a file or directory to another location.
MoveRecord的作用是:将一个文件或目录移动到其它的地址中。

Note: The ParentURL property will not be automatically updated. You must close the Record and then open it again with the new URL.
注意:ParentURL属性不会自动更新。你必须先关闭记录,然后再用一个新的URL打开它。

Syntax
语法

CopyRecord(src,dest,username,psword,opt,async)
MoveRecord(src,dest,username,psword,opt,async)

Parameter参数 Description描述
src Optional. The URL of the file or directory that will be copied/moved
可选参数。指示需要被复制/移动的文件或目录的URL
dest Optional. The URL to the location where src will be copied/moved
可选参数。指示需要将src复制/移动到具体地点的URL
username Optional. The user ID that authorizes access to dest
可选参数。访问dest的授权用户ID
psword Optional. The password that verifies username
可选参数。访问dest的授权用户密码
opt For CopyRecord: Optional. A CopyRecordOptionsEnum value that specifies the behavior of this method. Default is adCopyUnspecified
CopyRecord:可选参数。用于指定Method[方法]具体特性的一个CopyRecordOptionsEnum值。默认值为adCopyUnspecified

For MoveRecord: Optional. A MoveRecordOptionsEnum value that specifies the behavior of this method. Default is adMoveUnspecified
MoveRecord:可选参数。用于指定Method[方法]具体特性的一个MoveRecordOptionsEnum值。默认值为adMoveUnspecified

async Optional. A Boolean value that, when True, sets this operation to be asynchronous
可选参数。指定一个逻辑值。当为True时,设操作进程设置为不同步操作


CopyRecordOptionsEnum Values

Constant
常量
Value
Description
描述
adCopyUnspecified -1 Default. Will not allow over write or recursive copy
默认值。不允许覆盖或递归复制
adCopyOverWrite 1 Overwrites the file/directory if it already exists
允许覆盖现有的文件/目录
adCopyNonRecursive 2 Copies the current directory (none of its subdirectories) to the destination (this operation is not recursive)
将当前目录(其子目录除外)复制到目标目录(该项操作是不可递归的)
adCopyAllowEmulation 4 Requests that the provider attempt to simulate the copy. If the attempt to copy the Record fails because the destination URL is on a different server or serviced by a different provider than the source, this may cause data loss
请求技术提供对象[provider]尝试伪复制。如果记录复制失败,说明目标URL位于不同的服务器,或者是由不同的技术提供对象[provider]提供服务的,这可能导致数据丢失


MoveRecordOptionsEnum Values

Constant
常量
Value
Description
描述
adMoveUnspecified -1 Default. Will not overwrite any file/ directory at the destination location. Will also update links
默认值。不可以覆盖目标地址中任何一个文件/目录,但仍可以更新连接
adMoveOverWrite 1 Overwrites the file/directory if it already exists
允许覆盖现有的文件/目录
adMoveDontUpdateLinks 2 Modifies the default behavior of MoveRecord method by not updating the links of the source Record. The default behavior depends on the capabilities of the provider
不通过更新源记录的连接而对MoveRecord的默认特性进行修改。该默认特性是由技术提供对象[provider]的具体功能决定的
adMoveAllowEmulation 4 Requests that the provider attempt to simulate the move. If the attempt to move the Record fails because the destination URL is on a different server or serviced by a different provider than the source, this may cause data loss
请求技术提供对象[provider]尝试伪复制。如果记录复制失败,说明目标URL位于不同的服务器,或者是由不同的技术提供对象[provider]提供服务的,这可能导致数据丢失

评论 (0) All

登陆 | 还没注册?