sansoenk
(Sansoen Koedkaen)
January 4, 2021, 9:38am
1
I try to use Windows Task Scheduler by created batch script as…
“C:\Program Files (x86)\UiPath\Studio\UiPath.Agent.exe”
/file:“C:\Users\sansoenk\Documents\UiPath\AutomateNEFile\AutomateNEFile\SiteQuery.xaml” /executor /monitored
When I try to run .bat file, The Robot Tray is pop-up but it doesn’t execute the project.
Could someone help me to solve this problem.
wasea
(Vasile)
January 4, 2021, 9:46am
2
Hello @sansoenk ,
Can you verify the Event viewer for any errors?
Also the SIteQuery.xaml is the main file from your workflow?
Vasile.
sansoenk
(Sansoen Koedkaen)
January 5, 2021, 3:40am
3
There’re no error in Event viewer and I changed workflow to main workflow but I got a same result.
jeevith
(Jeevith Hegde, Ph.D.)
January 5, 2021, 5:18am
4
Hi @sansoenk ,
It is the command itself which needs to be edited in the bat file. You need to tell UiRobot.exe to execute a file.
You can take a look at the last reply in this thread (check the Step 1 making the bat file):
Hi @alexander.cleak ,
I tried this today and the robot can be triggered from a .net program as described below. The main requirement with this approach is that the full path to both the UiRobot.exe and the Process.xaml file need to be mentioned in the .bat file.
Approach:
Make a simple .bat file with the following contents
Echo "Starting the UiRobot.exe and executing a UiPath .xaml example file."
"C:\Users\%username%\AppData\Local\UiPath\app-20.10.2\UiRobot.exe" execute --file "C:\Users\%us…
Hope this helps!
sansoenk
(Sansoen Koedkaen)
January 5, 2021, 5:48am
5
I followed your step but It’s still show only Robot tray.
jeevith
(Jeevith Hegde, Ph.D.)
January 5, 2021, 5:53am
6
@sansoenk
Instead of UiPath.Agent.exe use the UiRobot.exe (this is the executor). You will have to look where this file is in your system. In the community edition it is usually in
Users -> %UserName% --> AppData --> Local --> UiPath --> Version of Studio --> UiRobot.exe
sansoenk
(Sansoen Koedkaen)
January 5, 2021, 6:07am
7
@jeevith Now It’s work, Thanks a lot sir!