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

Join 132,392 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,247 people online right now. Registration is fast and FREE... Join Now!




Windows scripting

 
Reply to this topicStart new topic

Windows scripting

DeiLeucetius
post 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

Go to the top of the page

abgorn
post 22 Aug, 2008 - 02:01 PM
Post #2


Hello Crap for Brains

Group Icon
Joined: 5 Jun, 2008
Posts: 859



Thanked 4 times

Dream Kudos: 25
My Contributions


You could propably do it from a batch (.bat) file. Look up on Google: (windows---) "cmd commands list"
User is offlineProfile CardPM

Go to the top of the page

NickDMax
post 22 Aug, 2008 - 09:01 PM
Post #3


2B||!2B

Group Icon
Joined: 18 Feb, 2007
Posts: 2,857



Thanked 47 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

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 07:12AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month