farshad Posted July 24, 2003 Posted July 24, 2003 The following code downloads particular files from a website. How can I download all files in a particular folder in that web site? Thanks Dim strURL As String = "http://www.test.com/images/" Dim strFileName() As String = {"image1.jpg", "image2.gif"} Dim strFullPath As String Dim wc(1) As WebClient For i As Integer = 0 To 1 wc(i) = New WebClient strFullPath = strURL & strFileName(i) wc(i).DownloadFile(strFullPath, "C:\test\Net\VB\Windows\" & strFileName(i)) wc(i).Dispose() Next Quote Farshad
Leaders dynamic_sysop Posted July 24, 2003 Leaders Posted July 24, 2003 you would have to know each file's name to be able to download them all then build the string up to hold each file name eg: Dim strFileName() As String = {"image1.jpg", "image2.gif" , "file name" , "other file name" , " and so on "} Quote
Diablicolic Posted August 3, 2003 Posted August 3, 2003 How could you display the downloading speed though? Quote "Reality is fake, Dreams are for real"
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.