Use windows scheduler to trigger the bot

Hi, how do i use windows scheduler to trigger the bot?

I keep getting this line “You can only run .NET6 .nupkg files or published process from the UiRobot command line.”

please help. thanks.

Hi,

Can you try to use --process option or --file xx.nupkg because UiRobot.exe doesn’t support --file xxx.xaml or xxx.json for Windows project.

image

https://docs.uipath.com/robot/standalone/2023.4/user-guide/command-line-interface

Regards,

1 Like

Hi @Joanna2

If you only have a .xaml file, you need to first package it into a .nupkg file before using the UiRobot command line to run it. You can follow these steps:

  1. Open your .xaml file in UiPath Studio.
  2. Click on the “Publish” button to open the “Publish” wizard.
  3. In the “Publish options” page ,choose “Publish to” to “Custom” and choose the output folder on “Custom URL” .
  4. Click the “Publish” button and wait for the packaging process to complete.
  5. Open a command prompt or Powershell window, and use the following command to run the .nupkg file:
C:\Users\ytcheng\AppData\Local\Programs\UiPath\Studio\UiRobot.exe execute --file "C:\Path\To\Your\Package.1.0.0.nupkg"

Replace “C:\Path\To\Your\Package.1.0.0.nupkg” in the command with the actual path to your .nupkg file.

Hope it helps!!

1 Like