ExecuteFile Statement

Description

Executes the VBScript statements in the specified file. After the file runs, the definitions in the file (functions, subroutines, classes) are available in the global scope of the action or component that called the ExecuteFile statement.

Syntax

ExecuteFile File

Argument

Type

Description

File

String

The absolute or relative path of the VBScript file to execute.

IMPORTANT

  • You cannot debug a file that is called using an ExecuteFile statement, or any of the functions contained in the file. In addition, when debugging a test that contains an ExecuteFile statement, the execution marker may not be correctly displayed.

    To enable debugging, use the LoadFunctionLibrary Statement instead of ExecuteFile. This statement provides similar functionality, but also enables you to debug the functions in the function library during run-time.

  • The ExecuteFile statement utilizes the VBScript ExecuteGlobal statement. For details, see the Microsoft VBScript Language Reference.

 

See also: