Run atmx file using command prompt

别说谁变了你拦得住时间么 提交于 2021-02-08 08:01:27

问题


How to run an atmx file(Automation anywhere ) using command prompt? A bot's extension is atmx. In uipath I am able to run it via command prompt as the extension is xaml.


回答1:


Just like you would for any executable. If your full path to the atmx file was: C:\Automation Anywhere\My Tasks\bot.atmx you can open CMD and simply type:

"C:\Automation Anywhere\My Tasks\bot.atmx"

Note the double quotes, these are to deal with the spaces in the path.




回答2:


You can run the .atmx file using command prompt or .bat file.The syntax will be

"C:\Users\username\Documents\Automation Anywhere Files\Automation Anywhere\My Tasks\Main.atmx"

It's working fine.




回答3:


you need to pass the absolute path of task file to AAPlayer.exe as input to run then it will work.

syntax will be like in cmd prompt :

"C:\Program Files (x86)\Automation Anywhere\Enterprise\Client\AAPlayer.exe" "/fAbsolute_Path_Of_Task_File_with_extension/e"



回答4:


You have to give the absolute path of the AA player and then the absolute path of the task you want to run as an argument, for example:

start "C:\Program Files (x86)\Automation Anywhere\Enterprise\Client\AAPlayer.exe" "C:\Users\admin\Documents\Automation Anywhere Files\Automation Anywhere\My Tasks\ABC_task.atmx"

Save that file as a .bat file. Once that is done change the properties of both the files (.txt and .bat) to Read-only. This is because I have observed that once we run the bat file, it is changing the text inside the text file which would result in failure when running the bat file again.



来源:https://stackoverflow.com/questions/50830795/run-atmx-file-using-command-prompt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!