如何使用批处理文件运行Teraterm和TTL文件? [英] How to run Teraterm and TTL file using Batch file?

查看:1200
本文介绍了如何使用批处理文件运行Teraterm和TTL文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Tera条款开始.要启动MACRO(TTL),请选择[控制]宏命令,然后在打开宏"对话框中选择宏文件.

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

从我的经验来看,/M应该是打开宏文件的命令.但是现在,Teraterm已打开,但不执行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?

推荐答案

这是我的问题的解决方案.我创建了一个批处理文件来执行ttpmacro.exe和.TTL文件.

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

文件位置可能不同.波特率和COM端口在TTL文件中设置.

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

这篇关于如何使用批处理文件运行Teraterm和TTL文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆