Originally posted by jasonwang at 2009-2-18 00:22:
我现在有这样一个需求,如何来实现:
1. 用PING命令,PING IP,如果目标设备存在
2. 输入TELNET IP
3. 出现USER提示后:输入帐号
4. 出现PASSWORD后: 输入 ...
@echo off
rem AutoTlnt.bat
rem Auto Detect and Telnet the remote machines, then reboot them
rem Version 1.0.0.0
rem Copyright 2009-2010 Scriptor (Scriptor@www.cn-dos.net)
rem Created at 23:28 2009年2月18日
rem ============================================================
rem Before you can go on, please read this REM carefully.
rem ~ stand for ENTER;
rem Modify the IP address you wana test;
rem Modify the Username and password to connect the remote machine.
rem NOTE: No Permission for Abusing of this script.
rem ============================================================