How to pass variable value through cmd to uipath bot


#1

im using cmd to run uipath bot normally i ll use command as “c:\uipath\uirobot.exe /file c:\uipath\sam\main.xaml”.
In Main.xaml it is having a message box assigned with empty variable called sample(String). Now I want to pass variable value from command prompt that is "c:\uipath\uirobot.exe /file c:\uipath\sam\main.xaml %sunitha"
this cmd is not working… still it is showing empty message box… Can anyone suggest me how to pass variables to uipath file


#2

did you try this way

With arguments:

"C:\Program Files (x86)\UiPath Studio\UiRobot.exe"

/file:"C:\Users\Iordache Razvan\Documents\UiPath\StartFromCmd\Main.xaml"

/input:"{'arg1':'hello'}"

#3

Yup bt it is throwing empty string… did it works for you


#4

yes, did you create arg1 as argument, not variable.