Back to product page
- Introduction
- Overview
- License agreement
- Getting Started
- Objects
- Enumerations
- wodSFTP
- Methods
- Abort
- About
- AppendData
- AppendFile
- Connect
- DeleteFile
- DeleteFiles
- Disconnect
- ExtendedCmd
- GetAttributes
- GetData
- GetDataAt
- GetFile
- GetFileAt
- GetFiles
- ListAttributes
- ListDir
- ListNames
- LoopFiles
- MakeDir
- PutData
- PutDataAt
- PutFile
- PutFileAt
- PutFiles
- RealPath
- RemoteClose
- RemoteOpen
- RemoteRead
- RemoteWrite
- RemoveDir
- Rename
- SetAttributes
- SetAttributes64
- Properties
- Authentication
- Blocking
- BufferSize
- ClientName
- Compression
- Encryption
- EncryptionList
- ErrorText
- Extensions
- FingerPrint
- FIPS
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- KeySignatureList
- LastError
- ListItem
- LocalPath
- Login
- MaxTransferRate
- MyHostname
- MyIP
- Notification
- Password
- Port
- PrivateKey
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- RemotePath
- Resume
- ServerErrorCode
- ServerErrorText
- State
- StateText
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Events
- Methods
- IwodSFTPNotify
- SftpItem
- SftpItems
- How to get support?
- Technical information
- Fast notifications interface
- Error list
Getting Started in VB
Working with the COM object
In order to insert wodSFTP COM object into your project, follow these steps:- Install the component on your system by starting its setup program.
- In the Visual Basic IDE, create a new project or open an existing one.
- Click on 'Project', then on the 'References' menu.
- Find and select 'WeOnlyDo! COM SFTP Client COM Object' and click on 'Ok' to leave the dialog box.
-
Open the code editor and at the top, in the (General) section add this code:
Dim WithEvents Sftp1 As wodSFTPCom
-
In Form_Load function initialize the component:
Private Sub Form_Load()
Set Sftp1 = New wodSFTPCom
End Sub
-
If you have the licensed version of wodSFTP, then after you initialize the component, set its LicenseKey property:
Private Sub Form_Load()
Set Sftp1 = New wodSFTPCom
Sftp1.LicenseKey = "xxxx....xxxx"
End Sub
- To learn how to use notifications instead of events (optional), please refer to the Notifications section.
-
To free up the resources when your program ends, destroy the component from Form_Unload event:
Private Sub Form_Unload(Cancel As Integer)
Set Sftp1 = Nothing
End Sub
- Do not forget to distribute wodSFTP.DLL when using the COM object!
Working with the ActiveX control
In order to insert wodSFTP ActiveX control into your project, follow these steps:- Install the component on your system by starting its setup program.
- In the Visual Basic IDE, create a new project or open an existing one.
- Click on 'Project', then on the 'Components' menu.
- Find and select 'WeOnlyDo! COM SFTP Client ActiveX Control' and click on 'Ok' to leave the dialog box.
- Locate the new wodSFTP icon on the Toolbox toolbar.
- Do not forget to distribute wodSFTP.OCX when using the ActiveX control!