HI,
I HAVE SCHEDULE A BATCH FILE THROUGH WINDOW TASK SCHEDULER ,
BUT IT IS NOT RUNNING.
WE ARE USING ATTENDED LICENCE.
PLEASE SUGGEST THE USEFUL IDEAS!!!
HI,
I HAVE SCHEDULE A BATCH FILE THROUGH WINDOW TASK SCHEDULER ,
BUT IT IS NOT RUNNING.
WE ARE USING ATTENDED LICENCE.
PLEASE SUGGEST THE USEFUL IDEAS!!!
Hi @hamid_hussain
Welcome back to the forum.
Can you please give more details on how you’re involving UiPath with Task Scheduler? If it’s simply a schedule in Windows Task Scheduler, then UiPath license wouldn’t have any impact on its getting triggered (or not getting triggered).
“C:\Users\prajwal\AppData\Local\UiPath\app-20.10.2\UiRobot.exe” -file “C:\Users\prajwal\Documents\UiPath\invoice\Main.xaml”
May I ask what you are trying to achieve with this?
Is this to run an automation or simply to launch Main.xaml from robot tray (so as to ‘execute’ the file)?
Hi @hamid_hussain,
Take a look at these threads. The same question and almost the same answer applies here. You can ignore the .net part but look at the .bat file contents
Solution in your case:
The command is the source of the problem. You are just missing the execute command Here is how the .bat file content should look like.
Echo "Starting the UiRobot.exe and executing a UiPath file Main.xaml."
"C:\Users\%username%\AppData\Local\UiPath\app-20.10.2\UiRobot.exe" execute --file "C:\Users\%username%\Documents\UiPath\invoice\Main.xaml"
Echo "Execution Ended"
Hope this helps!