Code Snippet
Public Sub telnet(ByVal sServer As String)
Dim Anwendung As New Process
Dim stdIn As StreamWriter
Dim stdOut As StreamReader
With Anwendung.StartInfo
.FileName = "cmd.exe"
.CreateNoWindow = False
.RedirectStandardError = False
.RedirectStandardInput = True
.RedirectStandardOutput = True
.UseShellExecute = False
End With
Anwendung.Start()
stdIn = Anwendung.StandardInput
stdIn.AutoFlush = True
stdOut = Anwendung.StandardOutput
stdIn.WriteLine("telnet " & sServer)
stdIn.Close()
stdErr.Close()
Anwendung.Close()
End Sub