Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Telnet within a subroutine
Name: Aequietas Date: August 27, 2003 at 13:34:05 Pacific OS: xp CPU/Ram: 1400 512
Comment:
Im trying to run 2 programs in a subroutine, And one of them is telnet. I see telnet trying to connect but then tells me the comp im trying to reach isnt actively responding. When i make a batch file with only the telnet commands in it its running fine, so i think it has sumthing to do with the subroutine, heres what ive got so far:
for /f "eol=; tokens=1*" %%i in (test.txt) do call :sub %%i 0 23
:sub set x1=%1 set x2=%2 set x3=%3 dude %x1% %x2% @echo Telnetting to 23 telnet %x1% %3% @echo Couldnt connect to port
Summary: 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@hotmai...
Summary: OK, one more question: I know there is ISAREADY.COM, but I don't want to depend on an external program. I want to find out from within a batch file without calling an external file if there is a flopp...