"C:\Users\AppData\Local\UiPath\app-19.7.0\UiRobot.exe" /file "C:\Users\Documents\UiPath\ThirdProcess\Main.xaml"
I need to execute this script from CMD only, as I am doing other API creation in my python code.
I am expecting to run one RPA bot using this script execution and then I will perform other data fetching task from the python API code.
LOCALAPPDATAwhich holds the path to local application data path of current user. I doubt that there is reallyC:\Users\AppData\Local\UiPath\app-19.7.0\UiRobot.exeas the account name is missing in this path. Concatenate this string with\UiPath\app-19.7.0\UiRobot.exeto get full qualified file name of the executable to run.os.getenvto get string value of Windows environment variableUSERPROFILEand concatenate it with string\Documents\UiPath\ThirdProcess\Main.xamlto get full qualified file name of the XAML file. Next use os.path.isfile two times with both file names to verify if the executable and the XAML file really exist. Then use subprocess module to run the executable with the XAML file as argument.