Results 1 to 3 of 3

Thread: FTP in VB.NET

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    2

    Question FTP in VB.NET

    Does anyone have/point me in the direction of vb.net code which will upload/download a file via ftp?

  2. #2
    Junior Member
    Join Date
    Sep 2002
    Posts
    26

    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)

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    2
    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
  •  



Click Here to Expand Forum to Full Width