BuiltIn.CopyFiles Method

Applies to TestComplete 15.47, last modified on January 20, 2023
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(Source, Destination, SubDir)

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

CopyFile Method
Copy Method
Copy Method
CopyFolder Method
Copy Method
DeleteFolder Method

Highlight search results