Search Tools Links Login

Easy Web Site File Download


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

About this post

Posted: 2003-06-01
By: ArchiveBot
Viewed: 99 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.