WaitFor Procedures (General questions)
Hello,
I am using the WaitFor command as a way to start capturing my data.
The problem I am having is sometimes, the prompt I am waiting for does not show up, and the Waitfor command causes an exception.
The logic I am hoping to do is this:
WaitFor( Prompt ) (Maximum wait 30 seconds)
if WaitFor fails (*Don't kick me off the system!*)
Get the data that is in the receive buffer
... do my logic to see if it still has what I need
Continue sending additional commands to my host system
I am using Winbatch as my programming language, but if you have a VBish example, that would be great!
Thanks for your help!
Barry