Re: wodSFTP --vbs --Retry the Connection - WeOnlyDo Discussion board

Re: wodSFTP --vbs --Retry the Connection (General questions)

by wodSupport, Wednesday, April 12, 2006, 16:09 (6799 days ago) @ openpc

Openpc,

I think this is your choice. Since you are doing this inside VBS and in blocking mode, you could do something like this (pseudo code):

while sftp1.state != connected
sftp1.hostname = something
sftp1.login = something_attempt_1
sftp1.password = something_attempt_1
sftp1.blocking = true
sftp1.connect
wend

above loop will iterate until it connects. Now, it's your job to change Login and Password so they're taken from somewhere and populated each time differently. I don't think you should use events in VBS for this purpose.

Can you try something like that?

Kreso


Complete thread: