Download file using VB

Questions about programming languages and debugging
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Download file using VB

Post by ayu »

Could anyone give me a code that would download for example a picture from a website... over and over again in VB? :? :)

User avatar
zigo
suck-o-fied!
suck-o-fied!
Posts: 88
Joined: 07 Jul 2005, 16:00
18

Post by zigo »

hey i might have smth usefulll for u but u have to search in the files
http://www.softsland.com/FTP_Client_Eng ... Basic.html

this downlaod this file it has VB source codes try looking init and search for what u need in it personaly i dontuse a lot VB but i will look into it and try to fidn a more acurate answer .

User avatar
zigo
suck-o-fied!
suck-o-fied!
Posts: 88
Joined: 07 Jul 2005, 16:00
18

Post by zigo »

Could anyone give me a code that would download for example a picture from a website... over and over again in VB?
hehe after readign twice ur post nwo i understand u want this hehe well actualy the link i posted u wotn help u to do this but actualy a bat script will do it hehe but what are u doing ihope it's for educational perpuse . i have to admit it's a good idea lol .

User avatar
zigo
suck-o-fied!
suck-o-fied!
Posts: 88
Joined: 07 Jul 2005, 16:00
18

Post by zigo »

well since u want it in VB here it is lol
http://tinyurl.com/p5sxk [i suggest using tinyurl.com for long urls]

look in this link u will find it u may need to tweak a bit but i dont think so .

i suggest u to use A Complete Multi Downloader (using multithreads) it's th third one . Have fun ihope it washelpfull and dont mess around with it u may get cought lol .

User avatar
zigo
suck-o-fied!
suck-o-fied!
Posts: 88
Joined: 07 Jul 2005, 16:00
18

Post by zigo »

ok im making like a temp fiel cleaner and disk cheker and ... in bat so now what i want is that it starts directly with windows but as u know i wont use it only for me im not selfish haha :wink: lol i will share it with everyone so what parameters shuld be used in that case . if u think that VB is easier ill go with VB .

damn i need VB tutorials i want to add my Baatch file in visual basic but i dunno how . :cry: :cry: :cry:

User avatar
H4evr
On the way to fame!
On the way to fame!
Posts: 43
Joined: 30 Apr 2006, 16:00
17
Location: Portugal
Contact:

Post by H4evr »

neo130 wrote:Could anyone give me a code that would download for example a picture from a website... over and over again in VB? :? :)
You can use this API function:

Code: Select all

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

Post Reply