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 OpenText Functional Testing 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.

The following example uses the InvokeApplication function to open Internet Explorer.
InvokeApplication "E:\Program Files\Plus!\Microsoft Internet\IEXPLORE.EXE"
See also: