Results 1 to 7 of 7

Thread: Another Question

  1. #1
    egiggey
    Guest
    Is there a way to have the Inet control download all the urls in a text file to a dir such as (c:\files)

  2. #2
    Matthew Gates
    Guest
    The MSInet Control is used to download files off of the Internet or it can be used for FTP, not used for files located on your computer.

  3. #3
    egiggey
    Guest
    thats what I want I have a text file containing Http urls and I need to download each one and save them into a dirictory on the c:\files

  4. #4
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Somehow he managed to post this question twice within 10 minutes of each other, but Matt I think you've got the wrong end of the stick. He has a file with a load of URL's in it and he wants iNet to download each file from the net that is listed in the text file (that's what I thought he meant anyway).

  5. #5
    egiggey
    Guest
    exactly chrisjk
    sorry about the double post I got an error on ie and I didnt think it had posted the first one

  6. #6
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Okay, read in each line of the text file using this code...
    Code:
    Dim FileNumber
    Dim strImported
    FileNumber = FreeFile
    
    Open "C:\MyFile.txt" For Input As #FileNumber       ' Open file.
    Do While Not EOF(FileNumber)                ' Loop until end of file.
    Line Input #FileNumber, strImported      ' Get line.
    'Pass line to inet to download. I don't know how to use inet, I've never used it.
    'strImported now contains the URL to download from.
    Loop

  7. #7
    egiggey
    Guest
    thank you

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