Call Automation Anywhere Tasks from any script

You can call Automation Anywhere tasks from a batch file or from any another program or a script. For example

Note : All the tasks are stored under My Documents\Automation Anywhere\Automation Anywhere folder.

To call Automation Anywhere 'download-emails.atmn'; from a batch file, add the following line in any batch file.

>"C:\Program Files\Automation Anywhere\Automation Anywhere.exe" "C:\Documents and Settings\<your username>\My Documents\Automation Anywhere\Automation Anywhere\My Tasks\download-emails.atmn" /u

To call Automation Anywhere 'download-data.atmn' from an excel macro, add following text into any excel macro.

Dim RetVal
RetVal = Shell("C:\Program Files\Automation Anywhere\Automation Anywhere.exe "C:\Documents and Settings\<your username>\My Documents\Automation Anywhere\Automation Anywhere\My Tasks\download-emails.atmn" /u", 1)

If task is successful it returns 0 to the calling program or if it encounters any error it will return 1.