Solved

Automate Telnet with VB

Posted on 2002-06-07
6
613 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
ID: 7061877
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
ID: 7061899
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
ID: 7062077
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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 43

Accepted Solution

by:
TimCottee earned 100 total points
ID: 7062116
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
ID: 7104875
By the way, the application listed above (TELNET.ZIP)doesn't work.
0
 

Author Comment

by:mjs082969
ID: 7156970
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
vb6 connector to mongodb 2 84
MS SQL store procedure to calculate and return result 6 58
Zip Folders Using Chilkat Routines 1 41
VB6 - Scroll Mouse wheel on Picturebox 13 44
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

803 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