Does anyone have/point me in the direction of vb.net code which will upload/download a file via ftp?
Printable View
Does anyone have/point me in the direction of vb.net code which will upload/download a file via ftp?
This is the easiest way to do it.
add the Microsoft Iternet transfer Control to your project (right click on the Components Tab on the upper left hand side then click on "Customize Toolbox"). Then check the box next to the tranfer control. Then click ok.
drag and drop the inet1 component anywhere on your project.
add the following code to where you want to so the FTP. This code does a download. You can look up the other commands.
'grab file off server
sdata = AxInet1.OpenURL("http://website.com/myfile.txt")
System.Windows.Forms.Application.DoEvents()
Do While AxInet1.StillExecuting
Sleep(100)
System.Windows.Forms.Application.DoEvents()
Loop
msgbox ("heres my data" & sdata)
thanks for the help, i'll try that