Easy Web Site File Download
![Visual Basic 6, or VB Classic Visual Basic 6, or VB Classic](https://www.fortypoundhead.com//assets/img/icons/v7/vb6.png)
Download any file off the internet. With this 2 line code snippet. This can download HTML File all the way to zip files. Easy And Quick
Original Author: Joe Healey
Assumptions
Easy to use, just one declaration and one call function
API Declarations
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
Code
call URLDownloadToFile(0 ,"http://www.download.com/file.zip" ,"C:downloadsfile.zip",0,0)
'Just replace http://www.download.com/file.zip with whatever file you want to DL
'Just Replace C:downloadsfile.zip with where and What File Name you want to save to
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.