Batch Files & telnet?

Discussion in 'Windows OS's' started by Impotence, Oct 31, 2006.

  1. Impotence

    Impotence May the source be with u!

    Likes Received:
    6
    Trophy Points:
    38
    I've been trying to make a batch file that uses telnet to sign into a service, so far i've had no luck :doh: (it logs in, but i cant get it to pass the string of text :/)

    The code i managed to write was terrible, so i wont even bother posting it (i'll post some sudo instead!)

    1. sign into server (telnet [IP] [PORT])
    2. Send Text String
    3. Sign out / close connection

    any pointers?

    thanks
     
  2. Dwarfer

    Dwarfer Guest

    i have two possibilities

    1. the string you're trying to forward; does it allow you to put into the shortcut itself so when you open the shortcut it forwards the login string into telnet (like "-console" and "-width 1024" in shortcut for games) - i dont know what the code is, but for example, this is what you should get "telnet -login 80.201.126.250"

    if so create a batch file to the individual shortcuts your wanting to go to, i presume you have a ikkle menu in the batch

    thats wot i'd do as i used to have problems with batch strings not forwarding.


    2. if this shortcut string works in shortcuts will it work in batch files. try "telnet -asdf" (obviously replace asdf with your string)
     

Share This Page