VBA <> PuTTY I/O communication

Jon Andersen 1 Reputation point
2021-03-22T13:08:38.487+00:00

I'm using Excel VBA to communicate with external equipment via Telnet. I can send commands using PLink/PuTTy). Ex. below: Set WshShell = CreateObject("WScript.Shell") IP = Range("FEP_Test!C9").Value WshShell.Run "putty.exe -telnet " & IP Sleep 2000 WshShell.SendKeys "root" WshShell.SendKeys ("{Enter}") Sleep 500 WshShell.SendKeys "bpshell" WshShell.SendKeys ("{Enter}") Sleep 500 But I cannot get the the replies back into VBA/Excel. How do I read the repiles based upon the commands? Hope you can help :)

{count} votes