|
-
Hi,
I think I can Answer ur question...
you cant directly call the telnet command from batch file...
but you can do like this by using Windows Script...
I have done this personally and it worked out...
-------------------------------------------------------
var Shell=WScript.CreateObject("WScript.Shell");
Shell.Run("telnet 10.20.10.20");
WScript.Sleep(100);
Shell.SendKeys("username");
Shell.SendKeys("{ENTER}");
WScript.Sleep(100);
Shell.SendKeys("password");
Shell.SendKeys("{ENTER}");
WScript.Sleep(100);
---------------------------------------------------------
Save this as .js file and run it
you will definitely connect to telnet... Hope you understood...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|