ProcessLauncher ProcessLauncher ProcessLauncher ProcessLauncher Class

Definition

Starts the specified process with associated arguments, if any.

public : static class ProcessLauncherpublic static class ProcessLauncherPublic Static Class ProcessLauncher// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows IoT Extension SDK (introduced v10.0.10586.0)
API contract
Windows.System.SystemManagementContract (introduced v2)
Capabilities
systemManagement

Remarks

This API requires the use of the IoT systemManagement capability. Users can add the following to their Package.appmanifest:<iot:Capability Name="systemManagement"/>

Methods

RunToCompletionAsync(String, String) RunToCompletionAsync(String, String) RunToCompletionAsync(String, String) RunToCompletionAsync(String, String)

Launches a new process.

public : static IAsyncOperation<ProcessLauncherResult> RunToCompletionAsync(PlatForm::String fileName, PlatForm::String args)public static IAsyncOperation<ProcessLauncherResult> RunToCompletionAsync(String fileName, String args)Public Static Function RunToCompletionAsync(fileName As String, args As String) As IAsyncOperation( Of ProcessLauncherResult )// You can use this method in JavaScript.
Parameters
fileName
PlatForm::String String String String

The name of the process to launch.

args
PlatForm::String String String String

Arguments for running the process.

Returns
Additional features and requirements
Device family
Windows IoT Extension SDK (introduced v10.0.10586.0)
API contract
Windows.System.SystemManagementContract (introduced v2)
Capabilities
systemManagement

Remarks

This API requires the use of the IoT systemManagement capability, and the inclusion of iot in the IgnorableNamespaces list. Users can add the following to their Package.appmanifest:<iot:Capability Name="systemManagement"/>, and add iot to their existing list of IgnorableNamespaces.

See Also

RunToCompletionAsync(String, String, ProcessLauncherOptions) RunToCompletionAsync(String, String, ProcessLauncherOptions) RunToCompletionAsync(String, String, ProcessLauncherOptions) RunToCompletionAsync(String, String, ProcessLauncherOptions)

Launches a new process, including the specified options.

public : static IAsyncOperation<ProcessLauncherResult> RunToCompletionAsync(PlatForm::String fileName, PlatForm::String args, ProcessLauncherOptions options)public static IAsyncOperation<ProcessLauncherResult> RunToCompletionAsync(String fileName, String args, ProcessLauncherOptions options)Public Static Function RunToCompletionAsync(fileName As String, args As String, options As ProcessLauncherOptions) As IAsyncOperation( Of ProcessLauncherResult )// You can use this method in JavaScript.
Parameters
fileName
PlatForm::String String String String

File name of process to start.

args
PlatForm::String String String String

Arguments for the specified process.

Returns
Additional features and requirements
Device family
Windows IoT Extension SDK (introduced v10.0.10586.0)
API contract
Windows.System.SystemManagementContract (introduced v2)
Capabilities
systemManagement

Remarks

This API requires the use of the IoT systemManagement capability, and the inclusion of iot in the IgnorableNamespaces list. Users can add the following to their Package.appmanifest:<iot:Capability Name="systemManagement"/>, and add iot to their existing list of IgnorableNamespaces.

See Also