CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2001
    Location
    Holland
    Posts
    3

    i need a way to transfer files from a ftp to a local comp.URGENT

    I'm looking for a simple way to do this.
    I need to transfer files from a deep sub dir within a ftp to a local dir the user specify's.
    But i cannot use a pre programmed FTP client because the user may not see from where he/she is downloading.
    And there must be a progress bar to see how long and how fast its going (its about really large binary files, .mdb, about 25 mb)...

    So can someone help me with this, i'm a total newbie at internet programming...

    Sebastian


  2. #2
    Join Date
    May 2001
    Location
    Russia
    Posts
    200

    Re: i need a way to transfer files from a ftp to a local comp.URGENT

    Private Declare Function URLDownloadToFile Lib "urlmon" Alias _
    "URLDownloadToFileA" (ByVal pCaller As Long, _
    ByVal szURL As String, _
    ByVal szFileName As String, _
    ByVal dwReserved As Long, _
    ByVal lpfnCB As Long) As Long

    Dim lngRetVal As Long
    lngRetVal = URLDownloadToFile(0, "ftp://test.com/test.exe", "c:\test.exe", 0, 0)


    But this code don't give you creating progress bar.

    Andy Tower

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

Featured