Solved

Automate Telnet with VB

Posted on 2002-06-07
6
606 Views
Last Modified: 2013-11-13
I wish to create a Telnet session with VB, be able to read information received, and send commands.  

I am currently doing this through a thrid-party software package from FTP Software.  This works fine, however, it does require overhead (installation and licensing requirements, etc).  I have modified my code to utilize the wininet dll functionality for FTP, but unfortunately it does not appear that Telnet functionality is included in this DLL.  

Does anyone have any experience using standard Windows components to provide this functionality in Visual Basic?  I have done a bit of research, and it does appear that I may be able to use a third-party package which doesn't require licensing (Expect for Windows, or PHP), but I really want to do this as cleanly as possible.

Thanks in Advance,

Michael
 
0
Comment
Question by:mjs082969
  • 4
  • 2
6 Comments
 

Author Comment

by:mjs082969
Comment Utility
Clarification:  In my initial post, I stated "I have modified my code to utilize the wininet dll functionality for FTP"; I do not mean the forementioned FTP (FTP Software), but rather the standard file transfer protocol/utility.
0
 
LVL 43

Expert Comment

by:TimCottee
Comment Utility
http://www.btinternet.com/~vbadmincode/code/telnet.zip

Is a sample application written in VB which will allow you to run a telnet session to any telnet server.
0
 

Author Comment

by:mjs082969
Comment Utility
I forgot to mention something significant.  This tool I am creating provides functionality to automate processes; so there is no GUI.  Is there any way I can I still use the WinSock control, as used in the example mentioned by Tim above, to do this?
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 43

Accepted Solution

by:
TimCottee earned 100 total points
Comment Utility
You don't have to show the form for a start and you could easily send your commands directly to the function that processes them without having to type it into the form.
0
 

Author Comment

by:mjs082969
Comment Utility
By the way, the application listed above (TELNET.ZIP)doesn't work.
0
 

Author Comment

by:mjs082969
Comment Utility
In case anyone researches this in the future....

While I did use the Winsock control to access the other computer system, once connected I had problems sending/receiving information to the other system (basically I would get a few funky characters, and then nothing).  At this point, I attributed my problems to not having the proper terminal emulation (VT-220,VT-320, etc).  This assumption may have been incorrect, but I believe it to be the case.  With this in mind, I no longer viewed this as realistic goal, as doing the groundwork necessary for providing this emulation would have exceeded the benefits gained.  So, I stuck with utilizing some 3rd party software via COM.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now