Table of Contents

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 string

The 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 string

The application path.

waitForCompletion bool

When 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

applicationPath string

The application path.

arguments string

The arguments.

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 string

The application path.

arguments string

The arguments.

waitForCompletion bool

When 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.