|
-
Oct 14th, 2002, 08:38 AM
#1
Thread Starter
New Member
FTP in VB.NET
Does anyone have/point me in the direction of vb.net code which will upload/download a file via ftp?
-
Oct 14th, 2002, 10:55 PM
#2
Junior Member
I have one way
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)
-
Oct 15th, 2002, 03:51 AM
#3
Thread Starter
New Member
thanks for the help, i'll try that
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|