Re: wodSFTPdll - using VB Script - WeOnlyDo Discussion board

Re: wodSFTPdll - using VB Script (General questions)

by happycujo, Wednesday, November 02, 2005, 21:17 (6959 days ago) @ wodSupport

Thanks, this is helpful.

We have just acquired the wodSFTP component and try to use it as well with VBS. However, I could not found a way to obtain back the various events of the component, such as Connected and Done. Is there any way to get all the event of wodSFTP with VBS?

Futhermore, your below below mentionned 'if you got an error, you can trap it here . Should the vbs ERR object be queried or should it be the ErrorText property of the wodSFTP object? Ìt seem clearer with the events of to do it.

An email response would certainly be appreciated (Admin: Look in my profile)

Regards,

Richard

Douglash,


[code]
Dim sftp
set Sftp = CreateObject( WeOnlyDo.wodSFTPCom.1 )
sftp.Blocking = 1
sftp.Hostname = your_hostname
sftp.Login = your_login
sftp.Password = your_password
sftp.Connect
' if you get an error, you can trap it here
'sftp.GetFile c: emp , /home/joe/somefile


sftp.ListDir /
wscript.echo sftp.ListItem
sftp.Disconnect[/code]

Hope I helped.
Kreso


Complete thread: