View Single Post
  #5  
Old 07-27-2012, 02:21 PM
emailsbecker emailsbecker is offline
Registered User
 
Join Date: Apr 2011
Posts: 74
HA! Got it. I changed this line:

Code:
  crt.Screen.Send "show sw " & strBoard(x) & ".1" & vbCr : crt.Screen.WaitForString vbCr
  strVLAN1Output = crt.Screen.ReadString ("#")
  vVLAN1s = Split(strVLAN1Output, vbcrlf)
To this:

Code:
  crt.Screen.Send "show sw " & strBoard(x) & ".1" & vbCr & "  " : crt.Screen.WaitForString vbCr
  strVLAN1Output = crt.Screen.ReadString ("#")
  vVLAN1s = Split(strVLAN1Output, vbcrlf)
It's subtle but the difference is that it sends the command, hits enter, then hits the space bar twice. It still reads until it finds the "#" so it captures what I need.
Reply With Quote