Utilities.FileSearch Method

Applies to TestComplete 14.40, last modified on April 22, 2021
This method is obsolete. See the Remarks section below.

Description

The Utilities.FileSearch method searches for a file with the specified Name in the list of folders specified by the DirList string.

Declaration

Utilities.FileSearch(NameDirList)

Name [in]    Required    String    
DirList [in]    Required    String    
Result String

Applies To

The method is applied to the following object:

Parameters

The method has the following parameters:

Name

Specifies the name of the file to search.

DirList

Specifies the list of folders in which the specified file will be sought. To separate folder names, use semicolons.

Result Value

If the function finds the desired file in one of the folders, it returns a string holding the full path and name of the file. If the file is not found, the function returns an empty string.

Remarks

This method is obsolete. It is supported for backward compatibility only. To search for files, use the aqFileSystem.FindFiles method.

See Also

FindFiles Method
Exists Method
Exists Method
OpenBinaryFile Method
OpenTextFile Method
Delete Method

Highlight search results