I have a batch file with this content: “C:\Program Files (x86)\UiPath Studio\UiRobot.exe” \file: “C:\Users\testrobot\Documents\UiPath\Projects\StartFromCmd\Main.xaml” The program will start the Robot exe, but the Main.xaml will not open. What can I do? Is there a solution to start the workflow?
thank you for your answer. I tried this before without any success. It was not a difference in the behavior. If I use a backslash, the Robot exe is starting, but not the Main.xaml file.
Mit freundlichen Grüßen/Best regards
Michael Boeckenhauer
Could you please elaborate the steps again? What do you mean by “Create a shortcut using Run feature inside windows”?
I tried to create a shortcut for the windows “Run”, but I am unable to change the settings in “Properties” as it does not read it as a “.bat” shortcut, instead reads it as target Type “Run”
When you say “Create a shortcut by using the Run feature in Windows”, what do you exactly mean.
I downloaded the zip file which has the “Run.bat”. Saved/Unzipped it in the path Downloads/Run
So now this folder has the file “Run.bat” which I edited and provided the paths that I needed to.
Now you say that I need to create a shortcut of “Run” and paste it in the same folder (Download/Run/). Did that. But on trying to edit the “Shortcuts” in “Properties”, it doesn’t allow me to edit it.
Target Type is mentioned as “Run…”
Looking at the screenshot, the target type should be Windows Batch file.
I tried to rename this to Run.bat but it still shows the same Target type.
You don’t need to create a shortcut of “Run.bat”. You just have to put it on the same folder as your Main.xaml workflow. Once it done, create a Task on Windows Task Scheduler and then set to execute the “Run.bat” as Action and your date/time as a Trigger.