PowerTCP Telnet for .NETfrom $349.00
Automated Session Example
The following example demonstrates an automated Telnet session, with the returned data written to console.
Telnet telnet1 = new Telnet();
telnet1.Login(new Credentials("myUsername", "myPassword", "$");
//Send a list command
//Read until prompt, write to console
string listing = telnet1.ReadToDelimiter("$");
//Send an exit command; server will close the connection
//Read any remaining data before the shutdown and write to console
To download a trial please visit the PowerTCP Telnet for .NET product page.