.net robot launching question

Hi @alexander.cleak,

You can write a simple bat file with the following contents and save it to your desired location.

“FullPathToYourUIROBOTEXE\UiRobot.exe” execute --file “FullPathToYourProcessXAMLfile\Main.xaml”
The quotes are important as some paths may have spaces which bat files do not allow.

  1. In your Task Scheduler in windows you can create a basic task
    image
    Click ok in the first window after checking on the yellow marker. This ensures that UiRobot.exe has the required access level. In the image the task is for some other automation so ignore the choice I make.
    image

  2. In the triggers window you can set the schedule you want your robot to run.

  3. When you reach the actions window choose to run your batfile in powershell (Here I run a ps.1 script but you can replace it with the full path of your bat file).

Usually powershell.exe is found in this path. Check if this is true in your case: "C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe"

Also ensure that your powershell execution policy is set correctly before setting up the task. Else your task will not run : Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser