Telnet

The Telnet library will let you interact with a host using the Telnet protocol. You can send any command and get the data that is returned by it. It is also possible to react on various events that are triggered.

My personal favorite is a ‘tail -f’ command on a log file. This will look like the host is triggering an event in your Visual Basic application when something is added to the log file. I have such an application running in my Windows service for months.

Click here to download the complete source code, the compiled DLL and the demo.

Below you can see all the code that you need when you want to execute a command on a remote machine:

Leave a Reply

Playground of Edwin Vermeer