Subscribe

UiPath Activities

The UiPath Activities Guide

Start Process

UiPath.Core.Activities.StartProcess

Launches a specified application and can optionally pass a list of arguments to it.

Properties

Input

  • FileName - The full file path where you can find the executable file of the application to be opened.

📘

Note:

All strings have to be placed between quotation marks.

  • Arguments - The parameters that can be passed to the application at startup.
  • WorkingDirectory - Path of the current working directory. This field accepts only string variables.

Common

  • DisplayName - The display name of the activity.
  • ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.

📘

Note:

If this activity is included in Try Catch and the value of the ContinueOnError property is True, no error is caught when the project is executed.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.

Example of Using the Start Process Activity

The example below explains how to use the Start Process activity for opening the Notepad application.

This is how the automation process can be built:

  1. Open Studio and create a new Process named by default Main.

📘

Note:

Create a new .txt file, save it with the name StartProcess.txt and place it in the project folder.

  1. Drag a Sequence container in the Workflow Designer.
    • Create the following variables:

Variable Name

Variable Type

Default Value

NotepadPath

GenericValue

NotepadFilePath

GenericValue

  1. Drag an Assign activity inside the Sequence
    • In the Properties panel, add the variable NotepadPath in the To field and the executable application, in this case "notepad.exe", in the Value field.
  2. Add another Assign activity and place it below the first one.
    • In the Properties panel, add the variable NotepadFilePath in the To field and the actual path of the file, in this example "StartProcess.txt", in the Value field.
  3. Drag a Start Process activity below the Assign activities.
    • In the Properties panel, add the variable NotepadFilePath in the Arguments field.
    • Add the variable NotepadPath in the FileName field.
  4. Run the process. The automation process opens the StartProcess.txt file.


    Download example

Updated 4 months ago


Start Process


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.