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”

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


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…

8 thoughts on “How To Trigger A Process Using .bat File – In UiPath

  1. Srinivas

    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. Hey Srinivas,
      Yes it is possible to trigger processes involving web application,sap etc 🙂

      1. Srinivas

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

      2. Exactly
        But we should use “Launch Workflow Interactive”

  2. Srinivas

    Thanks, Sharath. I will try it.

    1. Great!!😃

  3. Srinivas


    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.

    1. No problem
      Let’s connect once 🙂

Leave a Reply