Error in starting UiPath .xaml file from command line



i am getting the below error while invoking UIRobot.exe from command prompt.

Invalid command line: “C:\Program Files (x86)\UiPath Studio\UiRobot.exe” /file:“the filepath”

The command i am using is:

“C:\Program Files (x86)\UiPath Platform\UiRobot.exe” /file:“the file path”

I have figured out where the issue is.
Its with UiRobot.exe.
Whenever i try to run it with cmd. It gives me “Invalid command line” error.
But the UiRobot does start after I execute the command.
I have restarted the robot. Stopped and again started it, but I am facing the same issue.
I tried it on another PC, there this piece of code worked fine.
What could be the issue?


Hi Aditya,

Please try this way. When you first open the Command prompt:

  • cd C:\Program Files (x86)\UiPath Platform
  • UiRobot.exe -file “%HOMEPATH%\Documents\UiPath\test_debugging\Main.xaml”

Let me know if it works. Thanks!

Here is the list of command line arguments:


Hi @ovi,
I tried the command you suggested. It didn’t work and I am facing the same ‘Invalid Command Line’ error.
I tried this command on the other PC in which there was no problem and it worked.
Could it be issue with admin rights?
Or wrong installation of the UiPath Software. because UiRobot starts perfectly fine and it was running when i was running my xaml through studio but its not running through cmd.


Can you start the cmd line as admin and try again?