 | HostRunApplication Method (String, String, String) |
Runs an application with the specified filename, passing the specified arguments and
setting the specified working directory.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic int RunApplication(
string fileName,
string arguments,
string workingDirectory
)
Public Function RunApplication (
fileName As String,
arguments As String,
workingDirectory As String
) As Integer
Parameters
- fileName
- Type: SystemString
The name of the application to run. - arguments
- Type: SystemString
The arguments to pass to the application on startup. - workingDirectory
- Type: SystemString
The working directory to use for the started application.
Return Value
Type:
Int32The process ID of the started application.
Exceptions
RemarksUsing an AppUserModelId (familyName!appName) instead of a file name activates a Windows 8 App instead.
See Also