Re: WaitFor Procedures - WeOnlyDo Discussion board

Re: WaitFor Procedures (General questions)

by wodDamir, Tuesday, April 29, 2008, 16:11 (6052 days ago) @ bmclellan

Hi Barry,

You can still receive what is in the buffer by using Receive method. Also, in VB we have On Error GoTo statement, which prevents application from throwing an exception (I'm not sure if that exists in WinBatch and how errors are handled there). So the code would look something like this:

On Error GoTo ErrorHandler
some_variable = ssh1.WaitFor prompt , 30

ErrorHandler:
some_variable = ssh1.Receive

Can you try something like that in WinBatch?

Regards,
Damba


Complete thread: