How to run UiRobot by Windows Task Scheduler (my experiment)

*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

  1. Run UiPath Robot that you want to run with Windows Task Scheduler, click [Debug File]

*This is UiRobot result

  1. Click “Publish”

  2. Define Package Name [Name], check [Robot Defaults] then Click [Publish] button

  3. This information is belong to published UiPath Robot that we will use in bat’s script (5.1)

  4. Open NotePad.exe and type these to NotePad
    “C:\Users<your username>\AppData\Local\UiPath<uipath version>\UiRobot.exe” -file “<Name>..nupkg”

  5. 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”

  1. Click [File] => [Save As] => [File Name] : UiPathDemo.bat (Any name), [File Type] : All Files (.) and
    [Encoding] : ANSI , => Click [Save]

  2. Now we have UiPathDemo.bat for using with Task Scheduler

  3. Open Task Scheduler.exe => Click [Create Task…]

  4. [Create Task] Tab [General] => set task name [Name] : UipathDemo (Any name)

  5. [Create Task] Tab [Action] => Click [New]

Click [Browse]

Select UiPathDemo.bat => Click [Open]

Click [OK]

Click [OK]

  1. Now we have already created Task Scheduler for running “UiPathDemo.bat” name “UipathDemo”

  2. Select UipathDemo => Click [Run]

  3. You’ve got it !

17 Likes

This is really interesting… :+1:

1 Like

Does it work in community edition? its not working in my community edition. i followed the same steps

I use community too

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?

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?

You must use UiRobot only

YOU MUST USE UIROBOT

1 Like

Thank you , it works.

1 Like

thank you it worked for me.
http://www.texttospeech.viamagus.com
https://texttospeechdiscord.gamerlaunch.com//users/blog/5435696/1931313/how-to-use-text-to-speech-on-discord/?gl_user=5435696

1 Like

You don’t need to publish the package, you just need to put the UiPath version.
“C:\Users”
search for the user running UiPath
Then go to
image
image
image
Copy path the latest version
image
image
“C:\Users\nameUser\AppData\Local\UiPath\app-20.10.2”

Example

“C:\Users\nameUser\AppData\Local\UiPath\app-20.10.2\UiRobot.exe” -file “C:\Users\nameUser\Documents\UiPath\nameFolder\Main.xaml”

Save to .bat

Or

cd…
cd…
“C:\Users\nameUser\AppData\Local\UiPath\app-20.10.2\UiRobot.exe” -file “C:\Users\nameUser\Documents\UiPath\NameFolder\Main.xaml”

Note
In my case I enter the folder in which the robot is, but the robot as such almost always retains the name of Main if you do not change

This is only to generate the .bat, the scheduled task of Windows had already been explained in a previous post

1 Like

ou don’t need to publish the package, you just need to put the UiPath version.
“C:\Users”
search for the user running UiPath
Then go to
image
image
image
Copy path the latest version
image
image
“C:\Users\nameUser\AppData\Local\UiPath\app-20.10.2”

Example

“C:\Users\nameUser\AppData\Local\UiPath\app-20.10.2\UiRobot.exe” -file “C:\Users\nameUser\Documents\UiPath\nameFolder\Main.xaml”

Save to .bat

Or

cd…
cd…
“C:\Users\nameUser\AppData\Local\UiPath\app-20.10.2\UiRobot.exe” -file “C:\Users\nameUser\Documents\UiPath\NameFolder\Main.xaml”

Note
In my case I enter the folder in which the robot is, but the robot as such almost always retains the name of Main if you do not change

This is only to generate the .bat, the scheduled task of Windows had already been explained in a previous post

You don’t need to publish the package, you just need to put the UiPath version.
“C:\Users”
search for the user running UiPath
Then go to
image
image
image
Copy path the latest version
image
image
“C:\Users\nameUser\AppData\Local\UiPath\app-20.10.2”

Example

“C:\Users\nameUser\AppData\Local\UiPath\app-20.10.2\UiRobot.exe” -file “C:\Users\nameUser\Documents\UiPath\nameFolder\Main.xaml”

Save to .bat

Or

cd…
cd…
“C:\Users\nameUser\AppData\Local\UiPath\app-20.10.2\UiRobot.exe” -file “C:\Users\nameUser\Documents\UiPath\NameFolder\Main.xaml”

Note
In my case I enter the folder in which the robot is, but the robot as such almost always retains the name of Main if you do not change

This is only to generate the .bat, the scheduled task of Windows had already been explained in a previous post

Hello Jeevabalan,
I do this Task Scheduler in this movie from exact time from the link:


Thanks,
Cristian Negulescu
1 Like

Remember to mark the solution so that others can find it more easily

1 Like

Thank you for your mention :blush:

Hi,

We have scheduled bot using about method, can I close cmd promt while bot is running? because sometime cmd prompt is frezzing.

Why cmd prompt is freezing? because of any exception in bot?

Regards,
Reddy.