Is there a way to have the Inet control download all the urls in a text file to a dir such as (c:\files)
Printable View
Is there a way to have the Inet control download all the urls in a text file to a dir such as (c:\files)
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.
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
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).
exactly chrisjk
sorry about the double post I got an error on ie and I didnt think it had posted the first one
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
thank you