Forum Discussion
seburn
New Contributor III
This worked for me using WINSCP PutFiles command...
Dim sessionOptions As New SessionOptions
With sessionOptions
.Protocol = Protocol.Sftp
.HostName = "example.com"
.UserName = "username"
.UserName = "password"
.SshHostKeyFingerprint = "ssh-rsa 2048 ..."
End With
Using session As New Session
session.Open(sessionOptions)
session.PutFiles("C:\local\path\*.csv", "/remote/path/*").Check()
End Using
seburn
2 years agoNew Contributor III
Snippet sourced from stackoverflow
https://stackoverflow.com/questions/48556236/upload-file-to-sftp-server-using-vb-net
Related Content
- 7 months ago
- 3 months ago
- 7 months ago