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.
Step 2:
Now open a notepad,
Provide the information needed as shown below :
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“!!!
I am an engineer by profession and by heart :)
It's been 7+ years since I have been working with software development and robotic process automation.
I have implemented close to 80+ RPA processes in total by using Uipath.
It is so true that someone learns more by not reading something but by practicing the skill.
I have been trying to understand exactly where people who are just starting out their career struggle and understand the pain of struggling for hours trying to figure something out.I can help you with that.
Having a passion to share my piece of content, I have created step-by-step easy-to-digest courses.
My goal is to help you get ready for the future by learning new talents and becoming more productive by providing you with relevant and useful courses.
I'm still learning and exploring my field of work :)
Every feedback should be as valuable as you are to me, please feel free to reach out to me if you have any feedback, questions, or need any help.Thank You...
View all posts by Sharath Raju
8 thoughts on “How To Trigger A Process Using .bat File – In UiPath”
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.)?
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.)?
Hey Srinivas,
Yes it is possible to trigger processes involving web application,sap etc 🙂
Nice! Which means we can schedule a process without using orchestrator- using windows scheduler (using batch files)?
Exactly
But we should use “Launch Workflow Interactiveâ€
Thanks, Sharath. I will try it.
Great!!😃
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.
No problem
Let’s connect once 🙂