Results 1 to 3 of 3

Thread: URL -> Download API

  1. #1
    TheSarlacc
    Guest

    URL -> Download API

    ok, so there is the URLDownloadtoFile API call. this downloads a file from the net to a file on ur HDD. what i want to know is: how can i get the size of the requested file i want to download?

  2. #2
    jim mcnamara
    Guest
    Tangential suggestion - if you want to display a progress bar or know if it will fit on your disk drive, try the DoFileDownload api.

    It does all of this stuff automagically.

    Code:
    Private Declare Function DoFileDownload Lib "shdocvw.dll" _
        (ByVal lpszFile As String) As Long
    Sub Donwload(sDownload as string)
       sDownload = StrConv(Text1.Text, vbUnicode)
       Call DoFileDownload(sDownload)
    End Sub
    Maybe not. But it does download the file as well.

  3. #3
    TheSarlacc
    Guest
    thanx jim, but i still would like to know if it is possible...anyone know if it is?

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