Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi!
I want to create a batchfile that:
telnet [ip]
types in login and password automaticly
attaches BitchX (scr-bx)
changes nick in bitch
detaches
and logs outIs this possible, if so; how? :) If you have the time, PLEASE send me the batfile in mail

Just create a script file with the commands you would type. Example:
open [ip]
USER username
PASS password
byeNote: it's better to have the program to log into IP from a internal command, not by "TELNET [IP]", if possible.
After creating such script, do:
TELNET < SCRIPT.TXT
-- or, to supress the output --
TELNET < SCRIPT.TXT > NULNow, in order to do that via batch file, just create the script via batch file, like this (I'll use as example the same script I created above):
@echo off
echo open [ip]> %temp%.\script.dat
echo USER username>> %temp%.\script.dat
echo PASS password>> %temp%.\script.dat
echo bye>> %temp%.\script.dat
TELNET < %TEMP%.\SCRIPT.DAT > NUL
del %temp%.\script.datGot it? Some programs (such as FTP.EXE) will ask username and password by default, and you need to include a switch when calling it so it won't do that (it will 'wait' for you give the USER and PASS commands)
-- Secret_Doom - Leonardo Pignataro --
secret_doom@hotmail.com
www.batch.hpg.com.br

Oops, I thought TELNET was a line-by-line program, such as FTP.EXE, but I checked and it's not!
Forget everything I said ...
Sorry about that.
-- Secret_Doom - Leonardo Pignataro --
secret_doom@hotmail.com
www.batch.hpg.com.br

Didn't say it's not possible, just that I don't know how to do it.
-- Secret_Doom - Leonardo Pignataro --
secret_doom@hotmail.com
www.batch.hpg.com.br

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |