January 1, 2005

WinTask - URLDownloadToFile

'
' URLDownloadToFile - Downloads bits from the Internet and saves them to a file.
'
'
' Author: Joe Strazzere
'

Function DownloadFile(URL$, LocalFilename$)
    External("urlmon.dll", "URLDownloadToFileA", 0, URL$, LocalFilename$, 0, 0)
EndFunction

DownloadFile("http://www.unitedmedia.com/comics/dilbert/archive/images/dilbert2003016263926.gif", "c:joetest.gif")