How to create a file.bat

hello everybody,

please i need your help,

I want to create a file.bat , which is used to open the rebot in other machines, someone has an idea, thank you

  1. Open Notepad.
  2. Enter as below:
    start "" /min "<Full Path of UiRobot.exe>" /file:"<Full Path of .xaml File>"
  3. Save the File with .bat extension.
  4. Double Click on it should run the xaml file than you configured.

Let me know if it helps.

Thanks,
Rammohan B.

2 Likes

Hi,
thanks for the response,

iā€™ve founded that i have to write into :
1- full path of location uirobot.exe
2-full path of the Main.xaml location

and iā€™m using another application they told me that i have to write it into the file so
3- full path of installpath of the application

is that correct because when i double click start.bat a cmd line appear but nothing happen !

thank you,

1 Like

I didnā€™t get this part. What are you trying to achieve?

I am assuming that you have UiPath Robot Installed in your system and You have xaml file that you need to run through .bat file. Is that correct?

Thanks,
Rammohan B.

1 Like

i have an existing project they are doing the same as i said , 1,2,3
1-uirobot.exe
2- path of main.xaml
3- path of application that i used to extract some data for my project

yeh itā€™s correct,

Do you mean that your main.xaml includes automation on the application that you are mentioning in 3rd point ?

Thanks,
Rammohan B.

1 Like

Hi @ifranity,
Take a look to get some idea from this link

Regards
Balamurugan

1 Like

Exactely !

1 Like

In that case you need to make sure that your application is installed and access from the same location that is being provided under your xaml file. It doesnā€™t have to included in .bat file. Basically for such cases you should have a config file that stores any such location so that when you move your works to any other system for deployment you can just change the path in that config file.

Thanks,
Rammohan B.

Hello RamMohan,
i am too trying with .bat file as you said in ur commentā€¦
Example:
start ā€œā€ /min ā€œ<C:\Users\example\AppData\Local\UiPath\app-18.1.4\UiRobot.exe>ā€ /file:ā€œ<C:\Users\example\Documents\UiPath\Practice\Main.xaml File>ā€
is this correctā€¦?
when i tried i am getting this error.
error_1
Can you please help me in solving .

Thank you very much

@vinod_sagar Remove ā€˜<ā€™ & ā€˜>ā€™ from within those strings.

Thanks,
Rammohan B.

1 Like

@Rammohan91 it is not showing any Error,
when i double click on .bat file, it should show some resultsā€¦ but it is not showing anythingā€¦

@vinod_sagar Can you attach the screenshot of content from within the batchfile? It should basically start UiRobot.exe and run your .xaml file that you added under the batch file.

Just cross check if the path exists.

Thanks,
Rammohan B.

@vinod_sagar "C:\Users\example\AppData\Local\UiPath\app-18.1.4\UiRobot.exeā€ /file ā€œC:\Users\example\Documents\UiPath\Practice\Main.xaml Fileā€

give above command it will work.

@Rammohan91


2
3
and now its showing an license errorā€¦
and i am not able to find ACTIAVTE.EXE in uipath.

please help me.

thank you , its not showing any errorā€¦but not able to see any thing.
license errorā€¦ its showing nowā€¦

@vinod_sagar instead of /file u can also use -f

:frowning_face: its not working broā€¦

@vinod_sagar which one?

its not showing any resultsā€¦ screen will go offā€¦
please help me