i need to download a file from an internet site and save it in a specific folder. how do i do this?
thanks in advance.
Printable View
i need to download a file from an internet site and save it in a specific folder. how do i do this?
thanks in advance.
I can't take credit for the following code because Generation X help me on the same question a month ago.
But here it is:
Go up to Project-Component-Microsoft Inet Transfer Control
Drop it and a command button on your form
___________________________________________________
'PURPOSE: Reset
Inet1.Cancel ' Stops any current operations
Inet1.AccessType = icUseDefault
'PURPOSE: Connect
Dim byte_binarydata() As Byte
byte_binarydata() = Inet1.OpenURL(The URL location, icByteArray)
Open "C:\The name and location" For Binary Access Write As #1
Put #1, , byte_binarydata()
Close #1
___________________________________________________
See you
i have the vb learning edition and inet doesn't work. is there some other control or code i could use in its place?
Can you reference it instead? Go to Project-Reference rather than Components and reference it. Otherwise, if you can't I don't know of anyother method beside Inet control or Winsock Control.