RanorexRanorex Documentation
RunApplication Method (fileName, arguments, workingDirectory, maximized)
NamespacesRanorexHostRunApplication(String, String, String, Boolean)
Runs an application with the specified filename, passing the specified arguments and setting the specified working directory.
Declaration Syntax
C#Visual BasicVisual C++
public int RunApplication(
	string fileName,
	string arguments,
	string workingDirectory,
	bool maximized
)
Public Function RunApplication ( _
	fileName As String, _
	arguments As String, _
	workingDirectory As String, _
	maximized As Boolean _
) As Integer
public:
int RunApplication(
	String^ fileName, 
	String^ arguments, 
	String^ workingDirectory, 
	bool maximized
)
Parameters
fileName (String)
The name of the application to run.
arguments (String)
The arguments to pass to the application on startup.
workingDirectory (String)
The working directory to use for the started application.
maximized (Boolean)
Specifies whether the application should be started with a normal or maximized main window.
Return Value
The process ID of the started application.
Exceptions
ExceptionCondition
RanorexExceptionThrown if the application cannot be started.

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 3.2.3.16825 (3.2.3.16825)