Results 1 to 8 of 8

Thread: Download File from Internet

  1. #1

    Thread Starter
    Hyperactive Member venkatraman_r's Avatar
    Join Date
    Jul 1999
    Location
    Chennai, INDIA
    Posts
    284

    Post

    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.

  2. #2
    Lively Member
    Join Date
    Jan 1999
    Location
    Karjalohja, Finland
    Posts
    123

    Post

    Look at Internet Transfer Control in VB helps

    - Dj4

  3. #3

    Thread Starter
    Hyperactive Member venkatraman_r's Avatar
    Join Date
    Jul 1999
    Location
    Chennai, INDIA
    Posts
    284

    Post

    hI,

    Can you just gimme some sample codes??

  4. #4
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    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


  5. #5

    Thread Starter
    Hyperactive Member venkatraman_r's Avatar
    Join Date
    Jul 1999
    Location
    Chennai, INDIA
    Posts
    284

    Post

    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.

  6. #6
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    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


  7. #7
    Addicted Member
    Join Date
    Jan 1999
    Posts
    173

    Post

    Check out this cool series on the Internet Transfer control at:
    http://www.vbsquare.com/internet/

    ------------------
    "To the glory of God!"

  8. #8

    Thread Starter
    Hyperactive Member venkatraman_r's Avatar
    Join Date
    Jul 1999
    Location
    Chennai, INDIA
    Posts
    284

    Post

    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
  •  



Click Here to Expand Forum to Full Width