Changing your command teminator

Top  Previous  Next

When a command is sent to the telnet server using either the Send, SendWait, or SendNoWait methods it is by default terminated with a line feed '\n'. Some Telnet servers would prefer that commands be terminated with a carriage return line feed '\r\n'. To change the command terminator used when sending data set the CommandTerminator property.

 

Example

 

[C#]

// change command terminator to carriage return line feed

session.CommandTerminator = "\r\n";

 

 

[Visual Basic]

' change command terminator to carriage return line feed

session.CommandTerminator = "\r\n"

 





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC