I tried to download a .bak file from the FTP and save it into a local directory in my pc.
This is my code:
Try
My.Computer.Network.DownloadFile("ftp://nameOfServer/file.bak", "C:\Users\Admin\Documents\BackUp\file.bak", "user", "password")
Catch ex As Exception
MessageBox.Show(ex.Message, "Error")
End Try
When I execute the code I get this error:
Error on the remote server: 227 Entering Passive Mode(xxx,xx,xxx,xxx,xxx,xx)
I know that I need to change it to active mode, but I can´t find a way works correctly with my code. How can I solve that? thanks