Login Register


How to do a download and excute script in VB6? filter_list
Author
Message
How to do a download and excute script in VB6? #1
I'v tried methods in VB 2008/2010 but it wont work on VB6 :/
I know I can,
Be what I wanna be,
If I work hard at it,
I'll be where I wanna be!!!
:thumbs:

Reply

RE: How to do a download and excute script in VB6? #2
any1? .
I know I can,
Be what I wanna be,
If I work hard at it,
I'll be where I wanna be!!!
:thumbs:

Reply

RE: How to do a download and excute script in VB6? #3
[link=http://allapi.mentalis.org/apilist/URLDownloadToFile.shtml]ALLAPI.net - URLDownloadToFile[/link]

Code:
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 Private Sub Form_Load() 'example by Matthew Gates (Puff0rz@hotmail.com) DownloadFile "http://www.allapi.net", "c:\allapi.htm" End Sub
[Image: rytwG00.png]
Redcat Revolution!

Reply







Users browsing this thread: