Re: wodSFTPdll - using VB Script - WeOnlyDo Discussion board

Re: wodSFTPdll - using VB Script (General questions)

by wodSupport, Wednesday, November 02, 2005, 21:33 (6759 days ago) @ happycujo

This isn't nice VBS what I suggest here, but I think it will work correctly for you. I took it from wodFtpDLX sample, just changed 'FtpDLX' to 'SFTP': [code]Option Explicit
Dim objFTP, lst
Set objFTP = WScript.CreateObject( WeOnlyDo.wodSFTPCom.1 , wod_ )

' please change these lines, from here
WScript.echo Please edit this file and setup Login, Hostname and Password properties
objFTP.Hostname = put.your.host
objFTP.Login = yourlogin
objFTP.Password = yourpass
' to here

objFTP.Blocking = 1
objFTP.Connect
objFTP.ListDir ( / )
lst = objFTP.ListItem
WScript.echo lst
objFTP.Disconnect

Sub wod_Connected(ErrorCode, ErrorText)
WScript.Echo Connected & ErrorText
End Sub

Sub wod_Disconnected()
WScript.Echo Disconnected
End Sub

[/code]


Complete thread: