Results 1 to 2 of 2

Thread: HTTP download

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Location
    India
    Posts
    151

    HTTP download

    How to download a file therough http protocol from VB
    Variety is the spice of life

  2. #2
    Frenzied Member oh1mie's Avatar
    Join Date
    Sep 2001
    Location
    Finland
    Posts
    1,043
    VB Code:
    1. Private Declare Function DoFileDownload Lib "shdocvw.dll" (ByVal lpszFile As String) As Long
    2. Private Sub Command1_Click()
    3.     LoadFileFromWeb "http://www.vnieminenky.fi/download/mdac_typ_fi.exe"
    4. End Sub
    5. Public Sub LoadFileFromWeb(FileOnInternet As String)
    6.    
    7.    Dim sDownload As String
    8.    
    9.    sDownload = StrConv(FileOnInternet, vbUnicode)
    10.    Call DoFileDownload(sDownload)
    11.  
    12. End Sub
    oh1mie/Vic


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