Results 1 to 4 of 4

Thread: For god's sake, it is not that hard!

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    3

    Red face For god's sake, it is not that hard!

    Could some simply explain to me how I can download and upload a file using the INET control?

    Suppose I want to grab "PASSWORD.TXT" from "HTTP://WWW.URL.COM/" and then modify it on my hard-drive and upload it back.

    I just need you to tell me what the code is!

    Thanks in advance.

    BTi

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    For downloading...
    VB Code:
    1. Dim s$
    2.  
    3.   s = Inet1.OpenURL("http://www.url.com/password.txt")

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    3
    Thank you!

    Now 2 questions:

    1. CAN s$ be saved as a file on my HDD?

    2. How do you upload it back to www.URL.com?

    thanks in advance

  4. #4
    Fanatic Member Vanguard-MnC's Avatar
    Join Date
    Apr 2002
    Location
    Inactive for like ever.
    Posts
    628
    Originally posted by crptcblade
    For downloading...
    VB Code:
    1. Dim s$
    2.  
    3.   s = Inet1.OpenURL("http://www.url.com/password.txt")

    Oooh goodie! I can use that on my app too. thx from me too.

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