BuiltIn.CopyFiles Method

Applies to TestComplete 15.64, last modified on June 12, 2024
This method is obsolete. See the Remarks section below.


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


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:


The method has the following parameters:


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


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.


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.


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