中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-16 08:40
47,813 topics / 349,903 posts / today 0 new / 48,258 members
DOS疑难解答 & 问题讨论 (解答室) » Moderator, help me out: Regarding sending telnet commands with batch files
Printable Version  2,306 / 2
Floor1 imalive Posted 2003-12-05 00:00
初级用户 Posts 1 Credits 103
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!

Floor2 Wengier Posted 2003-12-11 00:00
系统支持 Posts 10,521 Credits 27,736
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.

Floor3 lianjl Posted 2004-01-10 00:00
初级用户 Posts 23 Credits 192
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023