.Bat file to execute macro from attachmate EXTRA application

707 Views Asked by At

How to execute macro file (.ebm) using batch script ?

Attachmate extra application has macro recording option after recording it saves .ebm file (macro) in local system. I have written a batch file to execute this macro. But its not working.

Thanks in advance!!

How I do it manually - I goes to the application in the folder and double click opens the attachmate application, when click on "Tools" option it displays list of recorded macros from that list I click on a macro to execute it. How can I automate this using batch script. please suggest

Solution found, Updated the script below.

start "" - After start command, you can give title or empty string (Thanks to compo for help)
extra.exe - This will open your aplication
/h <hostname> - Find your hostname/ip address in Options>Settings>Connection
/m macro path - Which macro you need to execute

Updated Batch script

@echo off

start "" extra.exe /h "tplxsuper.xyz.com" /m "C:\Users\Public\Documents\Attachmate\EXTRA!\macros\HELLO.EBM"
exit
1

There are 1 best solutions below

1
Rob On

This is how I have done it. Take your macro and change the file extension from .ebm to .elf your macro will be executable from a BAT or VBS file.