tabby icon indicating copy to clipboard operation
tabby copied to clipboard

I created a .bat file to connect to Tabby directly through Telnet through PnetLab, but I don't seem to be able to directly click on a device in PnetLab to connect to Telnet as MobaXterm does.

Open luanshang opened this issue 1 year ago • 0 comments

File Name:Start_Tabby.bat File Content: @echo off

REM 获取参数 SET input=%1 echo Input: %input%

REM 移除 telnet:// 前缀 SET input=%input:telnet://=%

REM 解析主机和端口 FOR /f "tokens=1,2 delims=:" %%a IN ("%input%") do ( SET host=%%a SET port=%%b )

REM 移除端口中的斜杠字符 SET port=%port:/=%

echo Host: %host% echo Port: %port%

REM 切换到 Tabby 所在目录 cd /d I:\Tools\SSH Terminal\Tabby echo Current directory: %CD%

REM 启动 Tabby,并打开 Telnet 连接 start Tabby.exe %host%:%port%

REM 等待 2 秒,确保 Tabby 成功启动 timeout /t 2 >nul

REM 关闭命令行窗口 exit

luanshang avatar Mar 20 '24 15:03 luanshang