Telnet Scripting in C#


This library, written in C#, expands on some telnet code from various other sources, presenting the caller with a number of functions handy for scripting telnet sessions (i.e. SendMessage, SendAndWait, WaitAndSend, WaitFor).

Many of these functions also accept multiple prompts to wait for, returning the index of the prompt that was actually found. This provides great flexibility when scripting for optional prompts and the like.

This code was written specifically to handle a telnet session to an OpenVMS box, but I'm certain that it can easily be modified to handle any telnet session.

Please feel free to contact me with any questions or comments on the code