China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-27 04:50
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Moderator, help me out: Regarding sending telnet commands with batch files View 2,261 Replies 2
Original Poster Posted 2003-12-05 00:00 ·  中国 上海 浦东新区 电信
初级用户
Credits 103
Posts 1
Joined 2003-12-05 00:00
22-year member
UID 13825
Gender Male
Status Offline
Want to write a batch command to send a series of telnet commands to achieve the following functions: 1. Automatically log in, (automatically input username and password) 2. Read data from a text file and also be able to write back 3. Automatically execute some commands and then logout Now I don't know if it is possible, and how to do it specifically, please ask the experts for guidance, thank you!

Floor 2 Posted 2003-12-11 00:00 ·  加拿大 安大略省 多伦多
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Write a Telnet script file, say TELNET.DAT, and then enter the following command:

telnet < telnet.dat

Note: Programs like DEBUG can also use a similar method to achieve the script function.

However, if you are referring to the Telnet program in Win2K/XP, this method won't work. But there is another method, that is, use the KPUSH command with relevant parameters before Telnet. I have tried it.

Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 3 Posted 2004-01-10 00:00 ·  中国 广东 深圳 龙岗区 电信
初级用户
Credits 192
Posts 23
Joined 2004-01-08 00:00
22-year member
UID 15110
Gender Male
Status Offline
Forum Jump: