How to run Teraterm and TTL file using Batch file?

wan cine picture wan cine · Oct 30, 2018 · Viewed 9.6k times · Source

From Tera Term. To start MACRO (TTL), select the [Control] Macro command and then the macro file in the Open Macro dialog box.

The question is how to write command inside batch file, to call macro file and run automatically by just opening batch file.

This is the command from previous post.

"C:\Program Files (x86)\teraterm\ttermpro.exe" /I /C=1 /BAUD=115200 /M=C:\Users\Public\test_ttermpro.ttl

From my uderstanding, /M should be command to open macro file. But now, Teraterm is open but don't execute TTL file. Any idea on how to solve this issue?

Answer

wan cine picture wan cine · Jan 3, 2019

Here the solution for my question. I create a batch file to execute ttpmacro.exe and .TTL file.

@echo on
start "C:\Program Files (x86)\teraterm\ttpmacro.exe" "C:\PCU_BOOTLOADER.TTL"
cls

File location might be different. Baudrate and COM port are set inside TTL file.