How To Trigger A Process Using .bat File – In UiPath

UiPath provides us the flexibility to trigger the robot in different possible ways.

We can use…

1. The UiPath Robot icon in the system tray or
2. UiPath Studio or
3. Remotely, from Orchestrator

Now let’s see how to trigger a process using .bat file!!!

“UiRobot.exe_Path” /file:”Main.xaml_Path”

Note:
1. UiRobot.exe_Path is your local path where the UiRobot.exe is available
2. Main.xaml_Path is your local path where the .xaml which you want to execute is available


Example

Implementation using UiPath :

Let us implement a workflow which displays “Hello Word!!!” and then we will run the workflow from “.bat file

Step 1:
Drag “Message Box” activity into the design panel and populate it with some data.

UiPath Run a process using .bat file 1.PNG

Step 2:
Now open a notepad,
Provide the information needed as shown below :

UiPath Run a process using .bat file 2.PNG

Then save the file as a .bat file.

Step 3:
Finally, when you try to run the “.bat file” that you have just created.

The workflow will be triggered and it displays the “Message Box“!!!

UiPath Run a process using .bat file 3.PNG

 

Click here to download the Source Code…

Hope it has helped you…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: