VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Downloads any file from the given URL to a local path specified.

by Raghunandan Satyanarayan (2 Submissions)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 21st May 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Downloads any file from the given URL to a local path specified.

API Declarations


(ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, _
ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long

Rate Downloads any file from the given URL to a local path specified.



    Dim lngRetVal As Long
   
    lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)
    If lngRetVal = 0 Then DownloadFile = True

End Function

Private Sub Command1_Click()
    DownloadFile "http://www.visualbuilder.com/images/visualbuilder_logo1.gif", "c:\temp\Temp.gif"

End Sub


Download this snippet    Add to My Saved Code

Downloads any file from the given URL to a local path specified. Comments

No comments have been posted about Downloads any file from the given URL to a local path specified.. Why not be the first to post a comment about Downloads any file from the given URL to a local path specified..

Post your comment

Subject:
Message:
0/1000 characters