I feel quite useless with Teraterm.
I tried to create a simple macro macro.ttl that sends some stupid commands:
connect '/C=3'
sendln '?'
sendln '|3'
in order to: connect '/C=3'- connect to Port 3 (althought it´s already in the config), sendln '?' - display help, sendln '|3' - enter this menu, etc.
This works when I open Teraterm and go to Macros and open the file but my problem now is how to handle this from the cmd window. I tried this:
start ttermpro.exe TTPMACRO "Teraterm_macros\macro.ttl"
basically: start Teraterm, open the macro and path and file name of the macro file. But it reports error:
Invalid host
Any hints, please? Thnx
The command,
start ttermpro.exe TTPMACRO "Teraterm_macros\macro.ttl", will result in Tera Term attempting to connect to the host "TTPMACRO", which likely does not exist. Thus, Tera Term prints the "Invalid Host" error message.Based on the documentation for the ttermpro command line options (here), a command to start Tera Term with a macro is:
where the /M option is defined as: