Joysogood
(Lukkana Krongtong)
March 6, 2020, 4:53am
1
*This post is my experiment
How to run UiRobot by Windows Task Scheduler—Joy.pdf (1.1 MB) How to run UiRobot by Windows Task Scheduler
Run UiPath Robot that you want to run with Windows Task Scheduler, click [Debug File]
*This is UiRobot result
Click “Publish”
Define Package Name [Name], check [Robot Defaults] then Click [Publish] button
This information is belong to published UiPath Robot that we will use in bat’s script (5.1)
Open NotePad.exe and type these to NotePad
“C:\Users<your username>\AppData\Local\UiPath<uipath version>\UiRobot.exe” -file “<Name>..nupkg”
Location, 2. Name and 3. Version from UiRobot Info
Example
“C:\Users\lukkana\AppData\Local\UiPath\app-20.2.0-beta0108\UiRobot.exe” -file “C:\ProgramData\UiPath\Packages\UiPathDemo.1.0.1.nupkg”
Click [File] => [Save As] => [File Name] : UiPathDemo.bat (Any name), [File Type] : All Files (. ) and
[Encoding] : ANSI , => Click [Save]
Now we have UiPathDemo.bat for using with Task Scheduler
Open Task Scheduler.exe => Click [Create Task…]
[Create Task] Tab [General] => set task name [Name] : UipathDemo (Any name)
[Create Task] Tab [Action] => Click [New]
Click [Browse]
Select UiPathDemo.bat => Click [Open]
Click [OK]
Click [OK]
Now we have already created Task Scheduler for running “UiPathDemo.bat” name “UipathDemo”
Select UipathDemo => Click [Run]
You’ve got it !
25 Likes
This is really interesting…
1 Like
Jeevabalan
(Jeevabalan Madhu)
March 10, 2020, 8:46am
3
Does it work in community edition? its not working in my community edition. i followed the same steps
Hi, i was able to “run” the bat.file using community edition and windows task scheduler but the workflow in UiPath did not execute. Could anyone advise me further?
Joysogood
(Lukkana Krongtong)
June 29, 2020, 5:15pm
6
Can you run on UiPath Studio?
If you can , then publish and copy new package paste to bat file
and re-run windows task schedule again
1 Like
Hi, it is still not working. The bat is being invoked but the task in task scheduler is running but UiPath package did not execute. Is setting a reminder via UiPath.Agent (previously called UiPath Robot) an alternative? Thanks
1 Like
Hi. I have the same issue. Any solution?
Joysogood
(Lukkana Krongtong)
July 30, 2020, 8:05am
9
You must use UiRobot only
Hello Jeevabalan,
I do this Task Scheduler in this movie from exact time from the link:
Thanks,
Cristian Negulescu
2 Likes
Remember to mark the solution so that others can find it more easily
1 Like
Joysogood
(Lukkana Krongtong)
January 30, 2021, 9:05am
19
Thank you for your mention
Joysogood
(Lukkana Krongtong)
February 5, 2022, 2:55pm
21
When robot works complete, the cmd will be gone.
Joysogood
(Lukkana Krongtong)
February 5, 2022, 2:57pm
22
Maybe there is any error in process.
You can write log message in exception block or see the execution log.
1 Like
Also, if the robot starts without a user session from schedule, user interface is not rendered. So, Ui activities would not work)
1 Like
HI Joy thankyou for taking out time. Can you please help me what do you mean by UI Robot ?
Can i use this on StudioX Community?
Kro_Raoq
(Kro Raoq)
June 30, 2023, 4:00am
27
Hi, I followed your steps, it works somehow, however, the logs on the UiPath is not showing on UiPath execution logs?, how is that?