cancel
Showing results for 
Search instead for 
Did you mean: 

VBO for FTP and SFTP?/?

NevilleWatson
Level 4
Surprised to discover that there is no provided VBO for FTP or SFTP
11 REPLIES 11

Sri_Krishna_Cha
Level 5
I am also looking for one.. Any thing you got ?

Denis__Dennehy
Level 15
There is not one.  There is nothing stopping you creating your own codes stage VBO that does this.

NevilleWatson
Level 4
Nothing except I wouldn't know how to develop this.  I have simply created an object to operate an FTP client.

Denis__Dennehy
Level 15
Good solution Neville.  

SagarMehta
Level 3
If anyone has used code stage for FTP can you please share the BO? Really appreciate it!

Prasen_ManoharB
Level 2
Try using the below code in a code stage   void DownLoadFTP() { SessionOptions sessionOptions = new SessionOptions { Protocol = Protocol.Ftp, HostName = "xxxx", PortNumber = 21, UserName = @"xxx", Password = "xxx", }; using (Session session = new Session()) { // Connect session.Open(sessionOptions); string remotePath = "/Test/",localPath = "D:\\2\\; TransferOptions ops = new TransferOptions(); ops.TransferMode = TransferMode.Automatic; TransferOperationResult rst = session.GetFiles(remotePath, localPath, false,ops); session.Close(); // Your code } }

MarcelaMesa
Level 3
prasen.bharati do you know something similar for SFTP?

AndreyKudinov
Level 10
.NET Framework does not seem to support SFTP natively. You will need to use a third party component to implement it.  Try https://github.com/sshnet/SSH.NET or find others. You'll have to deploy dll on all resource PCs. I'll leave googling ""download file sftp .net"" part for the homework. 

I think this is a good solution
https://digitalexchange.blueprism.com/dx/entry/8465/solution/nbotixftp-2

------------------------------
Rodrigo Villalba
------------------------------