Disconnect Method (Terminal)
Disconnects from the host. If no connection currently exists, this method is ignored.
'This example switches a connection from telnet to SSH and saves the session
Sub ConnectExample()
If ThisTerminal.connectionType = ConnectionTypeOption_Telnet Then
'First disconnect so you can change the settings
ThisTerminal.Disconnect
'Change the connection type
ThisTerminal.connectionType = ConnectionTypeOption_SecureShell
'Reconnect and save with the new settings
ThisTerminal.Connect
ThisTerminal.Save
End If
End Sub