Schedule a bot via Windows Scheduler

I have created a vb script file to run the xaml via windows scheduler.
The vb script file calls a batch file.
In the .bat file the following code is written.

dim objShell
set objshell = WScript.CreateObject (“WScript.Shell”)
objshell.Run "%compsec% /k " & cmd1 & " " & “C:\Users*\AppData\Local\UiPath\UiPath.Agent.exe" /file:"C:\Users*\Documents\UiPath\BlankProcess6\Main.xaml”

This opens the UiRobot tray instead of running the xaml.

The xaml file should be executed by this.
This was working in the previous versions like 18.3

But now in uipath versions 19.4, it is not working at all

windows schedular is no more supported with uipath we need to use ORCHESTRATOR - SCHEDULE option

Cheers @BikashPanigrahiHex

dim objShell
set objshell = WScript.CreateObject (“WScript.Shell”)
objshell.Run "%compsec% /k " & cmd1 & " " & “C:\Users* *\AppData\Local\UiPath\

*app-19.10.0-beta0463\UiRobot.exe

" /file:"C:\Users* \Documents\UiPath\BlankProcess6\Main.xaml”

Hi @BikashPanigrahiHex,

Agree with @Palaniyappan.
You can try to achieve it by pass the actual path of UiRobot.exe instaed of UiPath.Agent.exe

Regards

I tried. It did not work.

thats why kindly try with orchestrator schedule option buddy, which is the most reliable way to schedule a process
for more details on that
https://docs.uipath.com/orchestrator/docs/managing-schedules

cheers @BikashPanigrahiHex

We do not have an orchestrator in this process.
But we need to schedule the bot to run at a specific time/interval.

@BikashPanigrahiHex

Even i am also search the same task last few days at finally i found the solution.

Step1: i make one batch file like this
“C:\Users\naveen\AppData\Local\UiPath\app-19.10.2\UiRobot.exe” -file “D:\UIPATH\Robots\SITE_PERFORMANCE_CHECKER\Main.xaml”

Step2: i save this robot.bat file.
Step3: i make one task scheduler action like this.
like below:
windows-task_scheduler_with_ui_path

if not works: Step4: if its not work remove appdata in uipath folder and restart download latest comunity edition install it will works fine.

if its works mark as Solution (or) message me @naveenchristopher