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…

Advertisements

Author: Sharath Raju

Founder@www.ExcelCult.com

8 thoughts

  1. Hi Sharath,

    For triggering a file using .bat file, It’s working fine for Message box and notepad. Can we trigger a workflow where interactive applications involved (Type in into a web app or something.)?

      1. Nice! Which means we can schedule a process without using orchestrator- using windows scheduler (using batch files)?

  2. Sharath,

    I tried scheduling the process in Task scheduler, no use. It working fine when I triggering bat file. But I need to schedule it from Scheduler.

Leave a Reply