VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Ghost A Download

CovertLoop  (12 Submissions)   Coding Standards   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This code downloads anything off the internet without popping up a dialog box of any sort. Very simple to use. Vote if ya wanna.

Inputs
Don't forget about the declarations.

Assumes
Don't forget about the declarations.

Returns
Don't forget about the declarations.

Side Effects
Don't forget about the declarations.

API Declarations
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

Rate Ghost A Download (3(3 Vote))
Ghost A Download.bas

Ghost A Download Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters