Invoke Uipath code through command Line

Hi,
Can someone help me how to run code from command line

Regards
Vamsi

Hi @Vamsit2030

Please find below command to execute your xaml code from CMD prompt.

“C:\Program Files (x86)\UiPath Studio\UiRobot.exe”
/file:“C:\Users\Username\Documents\UiPat\Sample.xaml”

Please change the xaml file path according to your xaml file path.

Regards,
Vijay.

HI @Vamsit2030,

Please use the send Hotkey activity to get into cmd Prompt window from there you can give the exact xaml file path to invoke the same.

Command

Thanks,
Mohanraj

@Vijay_Kumar_C

I’m getting this error
The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.

Can you suggest what is wrong

Regards
Vamsi

Hey @Vamsit2030

Can you please check where is the UiRobot located in your system. check with something like below “C:\Users\UserName\AppData\Local\UiPath\app-19.5.0\UiRobot.exe”

Go to UiPath folder and Check for any folder which is having app-19.5.0 or app-18.4.1 similar pattern.
Inside this folder you can find the UiRobot file.

If it is located in Local folder then please check with below command.

“C:\Users\USerName\AppData\Local\UiPath\app-19.5.0\UiRobot.exe” /file:“C:\Users\UserName\Documents\UiPath\BlankProcess2\Main.xaml”

Regards,
Vijay.

2 Likes

Thanks @Vijay_Kumar_C
Its working

Regards
Vamsi

Hey @Vamsit2030

Glad that it worked for you.

Please mark this thread as solved by selecting relevant post which solved your issue. so that other people can easily find it.

Regards,
Vijay.