编写一个Telnet脚本文件,比如说TELNET.DAT,然后输入以下命令即可:
telnet < telnet.dat
说明:DEBUG等程序也可以用类似方法来完成脚本功能。
不过,如果你是指Win2K/XP中的那个Telnet程序的话,则用此方法是不行的。但有另一种方法,即在Telnet前用KPUSH命令加上相关参数即可,我已试过了。
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.