First I am not great at code. I am using VB on Reflections
I am trying to create a generic auto return for all show xxx commands on a router but getting hung up.
There is a host of show commands for various items in the router. All them return anywhere from 2 to 20 pages of data. At the end of each section of info or page you get "Press any key to continue (Q for quit)". So you have to hit return until you get to the end of the data and back to the command prompt which is always a "#".
I can create a macro and make it work, but get hung up trying to get it to auto return to the end of data.
I was trying to use a While command to make it work but it gets hung up.
I am sure this is simple for most of you out there.
So an example is:
.transmit "show port" & CR
It displays data different for each show command and stops with a (Q for quit).
I need it to auto return (CR) when it sees the Press any key to continue (Q for quit) until it gets to the command prompt of #
Thank you in advance if you can help.