randy-pcs' Blog

Randy Riegel's Blog at vbCity

Home Contact Syndicate this Site (RSS 2.0) Syndicate this Site (Atom) Login
  2 Posts :: 0 Stories :: 8 Comments :: 0 Trackbacks

Archives

C#

Personal

Riegel-Online

Stuff

VB


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.

posted on Monday, April 10, 2006 10:53 AM