Method RunClientProgram
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
RunClientProgram(string)
Launches an application on the client in an interactive script.
public UIResults RunClientProgram(string applicationPath)
Parameters
applicationPath
stringThe application path.
Returns
- UIResults
The UI result.
Exceptions
- InteractiveUserDetachedException
The interactive client was detached.
RunClientProgram(string, bool)
Launches an application on the client in an interactive script.
public UIResults RunClientProgram(string applicationPath, bool waitForCompletion)
Parameters
applicationPath
stringThe application path.
waitForCompletion
boolWhen set to
true
, the script will halt until the client application has completed or has been closed. In the interactive window, users will see the message “Wait for client program to finish”.
Returns
- UIResults
The UI result.
Exceptions
- InteractiveUserDetachedException
The interactive client was detached.
RunClientProgram(string, string)
Launches an application on the client in an interactive script.
public UIResults RunClientProgram(string applicationPath, string arguments)
Parameters
Returns
- UIResults
The UI result.
Examples
engine.RunClientProgram("notepad.exe", @"C:\skyline dataminer\logging\slerrors.txt");
Exceptions
- InteractiveUserDetachedException
The interactive client was detached.
RunClientProgram(string, string, bool)
Launches an application on the client in an interactive script.
public UIResults RunClientProgram(string applicationPath, string arguments, bool waitForCompletion)
Parameters
applicationPath
stringThe application path.
arguments
stringThe arguments.
waitForCompletion
boolWhen set to
true
, the script will halt until the client application has completed or has been closed. In the interactive window, users will see the message “Wait for client program to finish”.
Returns
- UIResults
The UI result.
Examples
engine.RunClientProgram(@"C:\Skyline DataMiner\Tools\SLTaskbarUtility\SLTaskbarUtility.exe", @"\h", true);
Exceptions
- InteractiveUserDetachedException
The interactive client was detached.