@echo off
echo set sh=WScript.CreateObject("WScript.Shell") >telnet_tmp.vbs
echo WScript.Sleep 300 >>telnet_tmp.vbs
REM 把127.0.0.1改为你要登录的IP地址
echo sh.SendKeys "open 127.0.0.1" >>telnet_tmp.vbs
echo WScript.Sleep 300 >>telnet_tmp.vbs
echo sh.SendKeys "{ENTER}" >>telnet_tmp.vbs
echo WScript.Sleep 300 >>telnet_tmp.vbs
REM 用户名echo sh.SendKeys "admin{ENTER}" >>telnet_tmp.vbs
echo WScript.Sleep 300 >>telnet_tmp.vbs
REM 密码
echo sh.SendKeys "123456{ENTER}" >>telnet_tmp.vbs
echo WScript.Sleep 300 >>telnet_tmp.vbs
start telnetcscript //nologo telnet_tmp.vbs
del telnet_tmp.vbs