Computing.Net > Forums > Programming > Telnet Batch File

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 Batch File

Reply to Message Icon

Name: mdmoose29
Date: February 11, 2006 at 22:26:17 Pacific
OS: Win XP
CPU/Ram: 2.5Ghz / 256mb
Product: Dell Dimension 2350
Comment:

Hi, I'm trying to figure out a way to make a batchfile, or any other type of file that will run at timed intervals, that will try to telnet to port 9201 on localhost. If it can connect then the batch file terminates, but if it cant then it terminates a service and restarts it. Does anyone know how I might go about writing this?



Sponsored Link
Ads by Google

Response Number 1
Name: thegrmreaper
Date: March 9, 2006 at 15:28:36 Pacific
Reply:

you cant....
telnet is an exe file....
and command.com (command prompt)
only will run one program/command at a time so a batch file like this :


@echo off
telnet
open http://www.google.com
exit
echo connection made


will not work it will run telnet untill you quit then the batch file will quit


0
Reply to Message Icon

Related Posts

See More


Small question about bina... C++ const char conversio...



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Telnet Batch File

Telnet from Batch File www.computing.net/answers/programming/telnet-from-batch-file/15212.html

Telnet using Batch file www.computing.net/answers/programming/telnet-using-batch-file/12716.html

Telnet script or batch file www.computing.net/answers/programming/telnet-script-or-batch-file/16240.html