InvokeApplication Statement

Description

Invokes an executable application.

Note: In most situations, you should use a SystemUtil.Run statement to run applications or to open files in their default application. For more details on the SystemUtil.Run statement, see the Standard Windows section of the Micro Focus UFT One Object Model Reference for GUI Testing.

The InvokeApplication statement is supported primarily for backward compatibility.

Syntax

InvokeApplication(Command, [StartIn])

Argument

Type

Description

Command

String

The path and command line options of the application to invoke.

StartIn

String

Optional. The working folder to which the Command path refers.

Return Value

Boolean. If the function fails to open the application, False is returned.

 

See also: