RanorexNetRanorexNet Documentation
StartWindowsApplication Method (fileName, arguments)
NamespacesRanorexApplicationStartWindowsApplication(String, String)
Starts a new application executing the specified file and passing the arguments and tries to retrieve the main window from the started process.
Declaration Syntax
C#Visual BasicVisual C++
public static Form StartWindowsApplication(
	string fileName,
	string arguments
)
Public Shared Function StartWindowsApplication ( _
	fileName As String, _
	arguments As String _
) As Form
public:
static Form^ StartWindowsApplication(
	String^ fileName, 
	String^ arguments
)
Parameters
fileName (String)
The file name of the application to start.
arguments (String)
Command line arguments passed to the application.
Return Value
The main window of the started application or null if an exception is thrown and ErrorAsException is set to false.
Remarks
This method blocks infinitely if the started application does not have a main window.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf fileName is null.
CommandFailedExceptionIf starting the application fails.

Assembly: RanorexNet (Module: RanorexNet) Version: 1.5.1.4524