Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2004
    Posts
    999

    Using Telnet Client in Vista

    Hi,

    I'm looking to run this small telnet script to reboot my router using vistas built-in telnet client:

    192.168.1.1 23
    WAIT "login"
    SEND "my_login_id\m" (enter your login ID here)
    WAIT "Password"
    SEND "my_login_pass\m" (enter your password here)
    WAIT "#"
    SEND "reboot\m"
    WAIT "#"

    ...without much luck.

    I would appreciate any help. Thanks.
    When everything seems under control, you're just not going fast enough Mario Andretti, Racer

  2. #2
    Join Date
    Mar 2004
    Posts
    999
    Update:

    I managed to reboot my router like this:

    - Start > Run > telnet 192.168.1.1
    - user: [username]
    - pass: [pass]
    - reboot

    Thats all.

    Now I just want to know how can I create a batch script for it?

    Thanks
    When everything seems under control, you're just not going fast enough Mario Andretti, Racer

  3. #3
    Join Date
    Mar 2004
    Posts
    999
    *bump*

    anyone? :-(
    When everything seems under control, you're just not going fast enough Mario Andretti, Racer

  4. #4
    Join Date
    Aug 2007
    Location
    Greece
    Posts
    390
    For this kind of automation script i use autoit.
    It can do pretty more than regular batch files and its still easy.

  5. #5
    Join Date
    Aug 2007
    Location
    Greece
    Posts
    390
    You can check if this vbscript works
    Code:
    Set wshShell = CreateObject("WScript.Shell")
    Dim cmdline
    'change with your ip
    cmdline = "telnet your ip"
    wshShell.Run (cmdline)
    WScript.sleep 1000
    'your username
    cmdline ="admin"+chr(13)
    wshShell.SendKeys(cmdline)
    WScript.sleep 1000
    'your password
    cmdline ="!!mklfeaat28"+chr(13)
    wshShell.SendKeys(cmdline)
    WScript.sleep 1000
    'the command you want to write
    cmdline ="reboot"+chr(13)
    wshShell.SendKeys(cmdline)
    Paste it in notepad and save it as reboot.vbs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •