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
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)