I want to get results from Command prompt in putty
I found a code as written below and it doesn't work,
I want to convert it to use with putty SSH. Anyone can help ?
Dim WshShell, oExecSet
WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("net time")
'We scan and display the command output flow
Do While oExec.StdOut.AtEndOfStream <> True
Re: How to get results from Command prompt in putty ?
GetVisibleText is very unreliable. The last line of output was often cut off for me. If there's more returned than fits on the screen, you miss it. It can get characters wrong, depending on the font and font size you use.
I would recommend setting putty to write to a log and read in the log, instead.