How to start uipath process using .bat file

Hello,

i need to start another process from on eUiPath flow.
so i am using start process and passing path of .bat file.
in .bat file i have below -
“C:\Program Files\UiPath\Studio\UiRobot.exe” -file “E:\apps2_s2_rpa\FactoryINDUSAPPS2\iPLAN\User Addition-License Activation\Main.xaml”

and passing this .bat filepath to start process

but it is opening bat file and closing but not starting workflow.
help me on same

@Mathkar_kunal

In your bat file, try adding execute keyword between the exe and the file path like this

"C:\Program Files\UiPath\Studio\UiRobot.exe" execute --file "E:\apps2_s2_rpa\FactoryINDUSAPPS2\iPLAN\User Addition-License Activation\Main.xaml"

Starting “XAML” is not supported for Windows or cross-platform projects. This can be used only for legacy projects.

So first check framework type of project you intend to run.

Cheers

not able to start.only opening bat file and closing

ok then what is the possible solution? how to start with bat

You should try one of the supported variants
In your case most likely the bold one

execute usage: UiRobot execute [–package-id <package_id> | --process-name <process_name> | --file <file_path>] [–input <input_params>] [–folder <folder_path>] [–entry <entry_point_path>]
Examples:
UiRobot execute --package-id UiPathDemo
UiRobot execute --package-id UiPathDemo --folder “Product/Development/QA”
UiRobot execute --process-name UiPathDemoProcess
UiRobot execute --file “C:\UiPath\Project\TestAutomation.1.0.3.nupkg” --entry “OtherEntryPoint.xaml”
UiRobot execute --input ‘{"intArg" : 3, "strArg" : "hello"}’ (PowerShell usage)
UiRobot execute --input “{"intArg" : 3, "strArg" : "hello"}” (Command Prompt & Bash usage)

Just use the Start Job activity.

ok
robot path - “C:\Program Files\UiPath\Studio\UiRobot.exe”
my script folder - “E:\apps2_s2_rpa\FactoryINDUSAPPS2\iPLAN\User Addition-License Activation\Main.xaml”
nuupkg file path - “E:\apps2_s2_rpa\FactoryINDUSAPPS2\iPLAN\User Addition-License Activation\User.Addition-License.Activation.1.0.1.nupkg”

and consider if i dont have any parameter then what will be the command for batch file.

hi @J0ska

we can run using below path -
“C:\Program Files\UiPath\Studio\UiRobot.exe” -file “E:\apps2_s2_rpa\FactoryINDUSAPPS2\iPLAN\User Removal on Confluence Space\User.Removal.on.Confluence.Space.1.0.1.nupkg”

it is running. only need to give .nupkg file path