Computing.Net > Forums > Disk Operating System > Telnet within a subroutine

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

Reply to Message Icon

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

goto :eof
:eof


@echo bye!
@echo on

Thx in advance



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Telnet within a subroutine

is there any way to create a Splash Screen from within a batch file??? www.computing.net/answers/dos/is-there-any-way-to-create-a-splash-screen-from-within-a-batch-file/2547.html

Creating a telnet-batchfile www.computing.net/answers/dos/creating-a-telnetbatchfile/10373.html

Find if floppy in a: from within BatFile www.computing.net/answers/dos/find-if-floppy-in-a-from-within-batfile/10339.html