BuiltIn.CopyFiles Method

Applies to TestComplete 14.30, last modified on November 21, 2019
This method is obsolete. See the Remarks section below.

Description

The CopyFiles method lets you copy the specified files or folder to a new location, overwriting any existing destination.

Declaration

BuiltIn.CopyFiles(SourceDestinationSubDir)

Source [in]    Required    String    
Destination [in]    Required    String    
SubDir [in]    Required    Boolean    
Result Integer

Applies To

The method is applied to the following object:

Parameters

The method has the following parameters:

Source

The name of one file or folder to be copied, or the name of several files (folders) if it includes wildcards (* or ?).

Destination

If Destination ends in a backslash (\), then Source will be copied to folder Destination, under its original name. If Destination does not end in a backslash, then Source will be copied under the name Destination.

SubDir

If Source is a folder, SubDir specifies whether its subfolders will be copied too.

Result Value

An integer value that means the total number of copied files.

Remarks

This method is obsolete. It is supported for backward compatibility only. To copy files, use the aqFileSystem.CopyFile, aqFile.Copy or aqFileInfo.Copy method. To copy folders, use the aqFileSystem.CopyFolder or aqFolderInfo.Copy method.

See Also

aqFileSystem.CopyFile Method
aqFile.Copy Method
Copy Method
aqFileSystem.CopyFolder Method
Copy Method
aqFileSystem.DeleteFolder Method

Highlight search results