After spending countless hours trying to figure out how to upload and download files using FtpWebRequest and FtpWebResponse I was playing around with the “snippets” and found one line statements in order to upload and download files.
' Upload File
My.Computer.Network.UploadFile("c:\myfile.txt", "ftp://hostname/myfile2.txt", "user", "pass")
' Download File
My.Computer.Network.DownloadFile("ftp://hostname/myfile2.txt", "C:\filename.html", "user", "pass")
I guess that is part of the learning process, but from now on I'll always check the Snippets out to see if code is there to do what I want. Until next time.