VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Download A File From The Internet2

by Aden R (2 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

This File Allows You To Download Files From The Internet.
The Source Code Is Fairly Easy To Use Too!

Rate Download A File From The Internet2

'Insert This In A Space In The Form
'Not Between Any Other Pieces Of Code Though
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
  Public Function DownloadFile(URL As String, _
LocalFilename As String) As Boolean
Dim lngRetVal As Long
lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)
If lngRetVal = 0 Then DownloadFile = True
End Function
ret = DownloadFile("http://www.URL Of The File", _
"c:\Which Dir To Save The File To.jpg, exe etc.")

Download this snippet    Add to My Saved Code

Download A File From The Internet2 Comments

No comments have been posted about Download A File From The Internet2. Why not be the first to post a comment about Download A File From The Internet2.

Post your comment

Subject:
Message:
0/1000 characters