|
-
Nov 28th, 1999, 12:23 PM
#1
Thread Starter
Hyperactive Member
Hi,
I need to down image and data files from internet. How do i program it in vb??
Please suggest me with some sample codes with detailed explanations.
Thanx.
Venkat.
-
Nov 28th, 1999, 02:41 PM
#2
Lively Member
Look at Internet Transfer Control in VB helps
- Dj4
-
Nov 28th, 1999, 06:49 PM
#3
Thread Starter
Hyperactive Member
hI,
Can you just gimme some sample codes??
-
Nov 28th, 1999, 09:30 PM
#4
Sure!
Dim strURL As String
strURL = "www.MySite.com"
Inet1.Execute strURL, "GET MyFile.txt C:\MyFile.txt"
------------------
Serge
Software Developer
[email protected]
[email protected]
ICQ#: 51055819
-
Nov 29th, 1999, 11:28 AM
#5
Thread Starter
Hyperactive Member
Hi Serge,
Thanx for you code. But i am not able to understand exactly what it does Serge. Can you please explain it.
I donno why i am unable to catch you in icq?
Thanx anyway.
Regards,
Venkat.
-
Nov 29th, 1999, 06:57 PM
#6
Ok, here's an explanation. When you use Execute method of Inet control first you would pass the address (e.g. www.yoursite.com or any other web site that you want to get the file from). Then you use GET command (it tells the Inet that the action will be GET something in this case MyFile.txt wich assuming that this file in the root directory of the web site) Next, you specify where to copy the downloaded file.
That's it.
About ICQ, lately, I can't use it here at work, so the only time I'm on it is afternoon at home (after 4PM eastern time)
------------------
Serge
Software Developer
[email protected]
[email protected]
ICQ#: 51055819
-
Nov 30th, 1999, 02:51 AM
#7
Addicted Member
Check out this cool series on the Internet Transfer control at:
http://www.vbsquare.com/internet/
------------------
"To the glory of God!"
-
Nov 30th, 1999, 11:33 AM
#8
Thread Starter
Hyperactive Member
Hi Serge and others,
Thanx for your help and Serge, your explanations are really good and fruitful.
Regards,
Venkat
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|