How would I go about using plink to create a telnet session? Here is the code that I am currently using. It keeps timing out, and I don’t understand why.
Dim plink As String = “C:\plink -telnet 192.168.0.99 23”
Dim s As New Shell
s.Execute(plink)
msgBox(s.Result)
I have tried to use the TELNET class provided in the link above, but for one reason or another even the demo project doesn’t work for me. Is there any possible way to do it utilizing plink and shell commands?
[quote=262670:@Jonathan Chaidez]How would I go about using plink to create a telnet session? Here is the code that I am currently using. It keeps timing out, and I don’t understand why.
Dim plink As String = “C:\plink -telnet 192.168.0.99 23”
Dim s As New Shell
s.Execute(plink)
msgBox(s.Result)[/quote]
Have you tried to change the timeout: s.TimeOut = 60000 // 60 seconds or s.TimeOut = -1 // No time-out. By default in windows the time-out is 2 seconds.
Dim plink As String = "C:\\plink -telnet 192.168.0.99 23"
Dim s As New Shell
s.TimeOut = -1
s.Execute(plink)
msgBox(s.Result)[/quote]