Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,799 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,327 people online right now. Registration is fast and FREE... Join Now!




Windows scripting

 
Reply to this topicStart new topic

Windows scripting

DeiLeucetius
22 Aug, 2008 - 10:14 AM
Post #1

New D.I.C Head
*

Joined: 22 Aug, 2008
Posts: 2

I am trying to make a script to restart my router.

CODE

telnet 192.168.1.254
restart

But this will only open up a telnet window but the "restart" commend wont get executed .
Any idea's?



User is offlineProfile CardPM
+Quote Post

abgorn
RE: Windows Scripting
22 Aug, 2008 - 02:01 PM
Post #2

Hello Crap for Brains
Group Icon

Joined: 5 Jun, 2008
Posts: 881



Thanked: 5 times
Dream Kudos: 50
My Contributions
You could propably do it from a batch (.bat) file. Look up on Google: (windows---) "cmd commands list"
User is offlineProfile CardPM
+Quote Post

NickDMax
RE: Windows Scripting
22 Aug, 2008 - 09:01 PM
Post #3

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,859



Thanked: 50 times
Dream Kudos: 550
My Contributions
you could pipe in a responce file.

responce.txt
restart
exit


then

C:> telnet 192.168.1.254 < responce.txt

of course I don't know what needs to happen to restart your router.

once you get a response file that works you can save the whole thing as a batch file.

This post has been edited by NickDMax: 22 Aug, 2008 - 09:02 PM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 01:50PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month